fix: move CI npm config out of .npmrc (#6901)

This avoids issues with local `npm commands` trying to use the Wombat registry.
This commit is contained in:
Mathias Bynens 2021-02-17 18:52:22 +01:00 committed by GitHub
parent ff26c62647
commit f7de60be22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ jobs:
env: env:
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}} NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
run: | run: |
npm config set registry 'https://wombat-dressing-room.appspot.com/'
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}' npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
npm publish npm publish
- name: Publish puppeteer-core - name: Publish puppeteer-core
@ -26,5 +27,6 @@ jobs:
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER_CORE}} NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER_CORE}}
run: | run: |
utils/prepare_puppeteer_core.js utils/prepare_puppeteer_core.js
npm config set registry 'https://wombat-dressing-room.appspot.com/'
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}' npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
npm publish npm publish

1
.npmrc
View File

@ -1,2 +1 @@
registry=https://wombat-dressing-room.appspot.com/
access=public access=public