diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9c455fd..3916208 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup Node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: @@ -32,6 +34,8 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.npm_token }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 22.x @@ -45,7 +49,7 @@ jobs: - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.ref_name }} - - run: npm publish --provenance --access public --tag next + - run: npm stage publish --provenance --access public --tag next if: "github.event.release.prerelease" - - run: npm publish --provenance --access public + - run: npm stage publish --provenance --access public if: "!github.event.release.prerelease"