mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
* chore: 🚀 引入vitest做组件测试 * chore: 🚀 引入vitest做组件测试 * chore: 🚀 update workflow * chore: 🚀 update workflow * chore: 🚀 update workflow * chore: 🚀 update workflow * chore: 🚀 update nodejs version * chore: 🚀 update nodejs version
36 lines
769 B
YAML
36 lines
769 B
YAML
name: Publish to npm
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
registry-url: https://registry.npmjs.org
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
npm install pnpm -g
|
|
pnpm install
|
|
|
|
- name: Run Build WEB TYPES
|
|
run: pnpm build:web-types
|
|
|
|
- name: Run Compiler
|
|
run: pnpm compiler
|
|
|
|
- name: Publish Package
|
|
run: |
|
|
cd lib
|
|
npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |