diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba10ef6..7d4ae98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: run: npm publish fetchclient.tgz --provenance --access public - name: Setup GitHub CI Node.js environment - if: github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') uses: actions/setup-node@v6 with: node-version: "24.x" @@ -109,7 +109,7 @@ jobs: scope: "@foundatiofx" - name: Push GitHub CI Packages - if: github.event_name != 'pull_request' + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') run: npm publish fetchclient.tgz --tag ${{ startsWith(github.ref, 'refs/tags/v') && 'latest' || 'next' }} --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}