Skip to content

Commit bbb84f5

Browse files
authored
chore: enable staged publishing (#226)
1 parent 6c7ce23 commit bbb84f5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
with:
14+
persist-credentials: false
1315
- name: Setup Node
1416
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1517
with:
@@ -32,6 +34,8 @@ jobs:
3234
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
3335
steps:
3436
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
37+
with:
38+
persist-credentials: false
3539
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3640
with:
3741
node-version: 22.x
@@ -45,7 +49,7 @@ jobs:
4549
- run: npm version ${TAG_NAME} --git-tag-version=false
4650
env:
4751
TAG_NAME: ${{ github.ref_name }}
48-
- run: npm publish --provenance --access public --tag next
52+
- run: npm stage publish --provenance --access public --tag next
4953
if: "github.event.release.prerelease"
50-
- run: npm publish --provenance --access public
54+
- run: npm stage publish --provenance --access public
5155
if: "!github.event.release.prerelease"

0 commit comments

Comments
 (0)