From 7318fc3bbf0290c8e449e192eb90db37e575a46c Mon Sep 17 00:00:00 2001 From: "Eric J. Smith" Date: Fri, 22 May 2026 11:58:46 -0500 Subject: [PATCH] Restrict GitHub Packages publish to release refs --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}}