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:
parent
fac02f3de9
commit
4142b3fbaf
2 changed files with 4 additions and 2 deletions
3
.github/workflows/release-insiders.yml
vendored
3
.github/workflows/release-insiders.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue