File tree Expand file tree Collapse file tree 6 files changed +36
-35
lines changed
src/packages/configprovider Expand file tree Collapse file tree 6 files changed +36
-35
lines changed Original file line number Diff line number Diff line change 11name : Release 3x Beta
22
33on :
4+ # pull_request:
45 push :
56 branches :
67 - feat_v3.x
78 workflow_dispatch :
89
910jobs :
1011 release-3x-beta :
11- env :
12- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
13- NPM_CONFIG_PROVENANCE : true
14- RELEASE_TAG : beta
15-
1612 runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ id-token : write
16+
1717 steps :
1818 - uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
21+ # ref: ${{ github.event.pull_request.head.sha }}
2122
2223 - name : Get commit message
2324 run : |
@@ -36,12 +37,13 @@ jobs:
3637 - name : Get Tag message
3738 if : contains( env.COMMIT_MESSAGE , '-beta')
3839 run : echo "RELEASE_TAG=beta" >> $GITHUB_ENV
39-
40+ #
4041 - name : Install pnpm
4142 run : npm i -g pnpm@10
4243
4344 - uses : actions/setup-node@v4
4445 with :
46+ registry-url : ' https://registry.npmjs.org'
4547 node-version : ' 20'
4648 cache : ' pnpm'
4749
@@ -62,19 +64,13 @@ jobs:
6264 fi
6365
6466 - name : Run Release @nutui/nutui-react
67+ env :
68+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
6569 if : env.ABORT != 'true'
66- run : |
67- cd ./release/h5 || exit 1
68- if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
69- echo "发布 @nutui/nutui-react 失败"
70- exit 1
71- fi
70+ run : pnpm --dir ./release/h5 publish:beta
7271
7372 - name : Run Releases @nutui/nutui-react-taro
73+ env :
74+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7475 if : env.ABORT != 'true'
75- run : |
76- cd ./release/taro || exit 1
77- if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
78- echo "发布 @nutui/nutui-react-taro 失败"
79- exit 1
80- fi
76+ run : pnpm --dir ./release/taro publish:beta
Original file line number Diff line number Diff line change 88
99jobs :
1010 release-3x :
11- env :
12- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
13- NPM_CONFIG_PROVENANCE : true
1411 runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ id-token : write
15+
1516 steps :
1617 - uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
1720
1821 - name : Install pnpm
1922 run : npm i -g pnpm@10
2023
2124 - uses : actions/setup-node@v4
2225 with :
26+ registry-url : ' https://registry.npmjs.org'
2327 node-version : ' 20'
2428 cache : ' pnpm'
2529
@@ -39,19 +43,13 @@ jobs:
3943 fi
4044
4145 - name : Run Release @nutui/nutui-react
46+ env :
47+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
4248 if : env.ABORT != 'true'
43- run : |
44- cd ./release/h5 || exit 1
45- if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
46- echo "发布 @nutui/nutui-react 失败"
47- exit 1
48- fi
49+ run : pnpm --dir ./release/h5 publish
4950
5051 - name : Run Releases @nutui/nutui-react-taro
52+ env :
53+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
5154 if : env.ABORT != 'true'
52- run : |
53- cd ./release/taro || exit 1
54- if ! npm publish --tag ${{ env.RELEASE_TAG }}; then
55- echo "发布 @nutui/nutui-react-taro 失败"
56- exit 1
57- fi
55+ run : pnpm --dir ./release/taro publish
Original file line number Diff line number Diff line change 11{
22 "name" : " @nutui/nutui-react-taro" ,
3- "version" : " 3.0.0-beta.13 " ,
3+ "version" : " 3.0.0-beta.14 " ,
44 "style" : " dist/style.css" ,
55 "main" : " dist/nutui.react.umd.js" ,
66 "module" : " dist/es/packages/nutui.react.build.js" ,
Original file line number Diff line number Diff line change @@ -421,6 +421,10 @@ function generateReleasePackageJson() {
421421 main : packageJson . main ,
422422 module : packageJson . module ,
423423 typings : packageJson . typings ,
424+ scripts : {
425+ "publish:beta" : "npm publish --tag=beta --access public --no-git-checks" ,
426+ "publish:latest" : "npm publish --access public --no-git-checks"
427+ } ,
424428 sideEffects : packageJson . sideEffects ,
425429 description : packageJson . description ,
426430 keywords : packageJson . keywords ,
Original file line number Diff line number Diff line change @@ -360,6 +360,10 @@ function generateReleasePackageJson() {
360360 main : packageJson . main ,
361361 module : packageJson . module ,
362362 typings : packageJson . typings ,
363+ scripts : {
364+ "publish:beta" : "npm publish --tag=beta --access public --no-git-checks" ,
365+ "publish:latest" : "npm publish --access public --no-git-checks"
366+ } ,
363367 sideEffects : packageJson . sideEffects ,
364368 description : packageJson . description ,
365369 keywords : packageJson . keywords ,
Original file line number Diff line number Diff line change @@ -189,7 +189,6 @@ export type NutCSSVariables =
189189 | 'nutuiPickerTitleCancelFontSize'
190190 | 'nutuiPickerTitleOkColor'
191191 | 'nutuiPickerTitleOkFontSize'
192- | 'nutuiPickerListHeight'
193192 | 'nutuiPickerItemHeight'
194193 | 'nutuiPickerItemTextColor'
195194 | 'nutuiPickerItemTextFontSize'
You can’t perform that action at this time.
0 commit comments