Skip to content

Commit a36f009

Browse files
authored
ci(publish.yml): npm stage publish
1 parent 3471790 commit a36f009

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ jobs:
1111
contents: read
1212
id-token: write # Required for OIDC
1313
steps:
14-
- uses: actions/checkout@v5
15-
- uses: actions/setup-node@v4
14+
- uses: actions/checkout@v6
1615
with:
17-
node-version: '22.x'
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: '24.x'
1820
registry-url: 'https://registry.npmjs.org'
1921

2022
# Ensure npm 11.5.1 or later is installed
@@ -26,8 +28,8 @@ jobs:
2628

2729
- name: Publish to NPM (beta)
2830
if: 'github.event.release.prerelease'
29-
run: npm publish --access public --tag v3-beta
31+
run: npm stage publish --access public --tag v3-beta
3032

3133
- name: Publish to NPM (stable)
3234
if: '!github.event.release.prerelease'
33-
run: npm publish --access public --tag v3-latest
35+
run: npm stage publish --access public --tag v3-latest

0 commit comments

Comments
 (0)