Skip to content

Commit

Permalink
Update master_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kiccer authored Apr 10, 2024
1 parent 0ce788f commit 080a886
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/master_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

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

0 comments on commit 080a886

Please sign in to comment.