We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ceaaa commit 91e827cCopy full SHA for 91e827c
.github/workflows/release.yml
@@ -9,7 +9,10 @@ jobs:
9
publish-npm:
10
runs-on: ubuntu-latest
11
steps:
12
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0 # 获取完整历史
15
+ clean: true # 清理工作目录
16
- uses: actions/setup-node@v1
17
with:
18
node-version: 18
@@ -19,6 +22,10 @@ jobs:
19
22
- run: npm install pnpm -g
20
23
- run: pnpm install
21
24
- run: pnpm build
25
+ - name: Sync git tags
26
+ run: |
27
+ git fetch --prune --prune-tags # 清理已删除的远程标签
28
+ git fetch --tags -f # 强制更新所有标签
29
- name: Publish with Lerna
30
env:
31
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments