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