Skip to content

Commit 080a886

Browse files
authored
Update master_push.yml
1 parent 0ce788f commit 080a886

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/master_push.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: 检出代码
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: 设置 Node.js 版本
16-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 16
1919
registry-url: https://registry.npmjs.org/
@@ -49,7 +49,11 @@ jobs:
4949

5050
- name: 创建 tag
5151
if: steps.check-tag.outputs.exists == 'false'
52-
run: git tag v${{ steps.package-version.outputs.version }} && git push --tags
52+
# run: git tag v${{ steps.package-version.outputs.version }} && git push --tags
53+
uses: laputansoft/[email protected]
54+
with:
55+
github_token: ${{ env.github-token }}
56+
tag: v${{ steps.package-version.outputs.version }}
5357

5458
- name: 发布 Release
5559
if: steps.check-tag.outputs.exists == 'false'

0 commit comments

Comments
 (0)