setup npm registry url

The `NPM_TOKEN` name was also incorrect (surprise?). Found another
resource here that mentions the `registry-url` option and
`NODE_AUTH_TOKEN`. Let's see if that works...

https://docs.github.com/en/actions/guides/publishing-nodejs-packages
This commit is contained in:
Robin Malfait 2021-09-07 15:58:32 +02:00
parent fac02f3de9
commit 4142b3fbaf
No known key found for this signature in database
GPG Key ID: 92F53D68B9041AFE
2 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Use cached node_modules
id: cache
@ -54,4 +55,4 @@ jobs:
run: npm publish --tag insiders
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -19,6 +19,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Use cached node_modules
id: cache
@ -47,4 +48,4 @@ jobs:
run: npm publish
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}