File tree Expand file tree Collapse file tree 2 files changed +54
-3
lines changed
Expand file tree Collapse file tree 2 files changed +54
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Release Beta NPM Packages
2+
3+ on :
4+ push :
5+ branches :
6+ - feat_v3.x
7+ workflow_dispatch :
8+ tags :
9+ description : ' Publish release packages version'
10+ required : true
11+ default : ' beta'
12+ type : choice
13+ options :
14+ - beta
15+ - alpha
16+ publish :
17+ description : ' Test scenario tags'
18+ required : false
19+ type : boolean
20+
21+ jobs :
22+ release :
23+ if : ${{ inputs.publish }}
24+ env :
25+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
26+ NPM_CONFIG_PROVENANCE : true
27+ TAG : ${{ inputs.tags }}
28+
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v4
32+
33+ - name : Install pnpm
34+ run : npm install -g pnpm@v9
35+
36+ - uses : actions/setup-node@v4
37+ with :
38+ node-version : ' 20'
39+ cache : ' pnpm'
40+
41+ - name : Install dependencies
42+ run : pnpm install --no-frozen-lockfile
43+
44+ - name : Run Build
45+ run : pnpm build & pnpm build:taro
46+
47+ - name : Run Release @nutui/nutui-react
48+ run : cd ./release/h5 && npm publish --dry-run --tag $TAG
49+
50+ - name : Run Releases @nutui/nutui-react-taro
51+ run : cd ./release/taro && npm publish --dry-run --tag $TAG
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release NPM Packages
33on :
44 push :
55 tags :
6- - ' v3* '
6+ - v3.*
77 workflow_dispatch :
88
99jobs :
3030 run : pnpm build & pnpm build:taro
3131
3232 - name : Run Release @nutui/nutui-react
33- run : cd ./release/h5 && npm publish --dry-run
33+ run : cd ./release/h5 && npm publish
3434
3535 - name : Run Releases @nutui/nutui-react-taro
36- run : cd ./release/taro && npm publish --dry-run
36+ run : cd ./release/taro && npm publish
You can’t perform that action at this time.
0 commit comments