From b5659ebd826130577f24e24225f4f8ca3bbdb20d Mon Sep 17 00:00:00 2001 From: meisZWFLZ Date: Sun, 26 Nov 2023 18:49:02 -0700 Subject: [PATCH] ci: add check for pre-release/stable branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a503e9..7850855 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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