Skip to content

Commit 7b5eb81

Browse files
committed
chore: 测试手动执行
1 parent 123c17e commit 7b5eb81

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed

.github/workflows/release-beta.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release NPM Packages
33
on:
44
push:
55
tags:
6-
- 'v3*'
6+
- v3.*
77
workflow_dispatch:
88

99
jobs:
@@ -30,7 +30,7 @@ jobs:
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

0 commit comments

Comments
 (0)