Skip to content

Commit

Permalink
chore: modify publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Aug 22, 2024
1 parent 5e9a712 commit b540727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:
branches:
- main
tags:
- 'Publish'
- v*
if: startsWith(github.ref, 'refs/tags/')

jobs:
build-and-publish:
# git tags中包含Publish 且 ['Unit Tests', 'Code Check']工作流成功完成
if: >
startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'Publish') && github.event.workflow_run.conclusion == 'success'
# ['Unit Tests', 'Code Check']工作流成功完成
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down

0 comments on commit b540727

Please sign in to comment.