Skip to content

Commit 346977d

Browse files
committed
Even more workflow tweaking.
1 parent e7ef232 commit 346977d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/setup-node@v6
2525
with:
2626
node-version: '24'
27+
registry-url: 'https://registry.npmjs.org'
2728

2829
- name: Set tag
2930
id: tagName
@@ -37,8 +38,12 @@ jobs:
3738

3839
- name: Publish a release candidate
3940
if: contains(steps.tagName.outputs.tag, 'rc')
40-
run: npm publish --tag=rc --provenance --access public
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43+
run: npm publish --tag=rc --provenance
4144

4245
- name: Publish a regular release
4346
if: false == contains(steps.tagName.outputs.tag, 'rc')
44-
run: npm publish --provenance --access public
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
run: npm publish --provenance

0 commit comments

Comments
 (0)