Skip to content

Commit 2dc7306

Browse files
committed
Use registry_token over node_auth_token
1 parent 4dc04b6 commit 2dc7306

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
type: string
1414
required: true
1515
secrets:
16-
node_auth_token:
16+
registry_token:
1717
description: The Node.js auth token.
1818
required: true
1919

@@ -40,7 +40,7 @@ jobs:
4040
- name: Publish
4141
uses: JS-DevTools/npm-publish@v2
4242
with:
43-
token: ${{ secrets.node_auth_token }}
43+
token: ${{ secrets.registry_token }}
4444
registry: ${{ inputs.registry_url }}
4545
package: ${{ steps.meta.outputs.tgz }}
4646
access: public

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
artifact_name: ${{ needs.build.outputs.artifact_name }}
5252
registry_url: https://registry.npmjs.org
5353
secrets:
54-
node_auth_token: ${{ secrets.NPM_TOKEN }}
54+
registry_token: ${{ secrets.NPM_TOKEN }}
5555
github:
5656
name: GitHub Packages
5757
uses: ./.github/workflows/_publish.yml
@@ -63,4 +63,4 @@ jobs:
6363
artifact_name: ${{ needs.build.outputs.artifact_name }}
6464
registry_url: https://npm.pkg.github.com
6565
secrets:
66-
node_auth_token: ${{ secrets.GITHUB_TOKEN }}
66+
registry_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)