Skip to content

Commit

Permalink
ci: add check for pre-release/stable branch
Browse files Browse the repository at this point in the history
  • Loading branch information
meisZWFLZ committed Nov 27, 2023
1 parent c894ee5 commit b5659eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: Test
run: npm test
release_and_publish:
if: ${{ github.ref_protected }} && contains(fromJSON('["pre-release", "stable"]'), ${{ github.ref_name }})
runs-on: ubuntu-latest
environment: npm_publish_env
needs: build
Expand Down

0 comments on commit b5659eb

Please sign in to comment.