chore: improve logging in the publishing script (#7984)

This commit is contained in:
Alex Rudenko 2022-02-10 10:14:02 +01:00 committed by GitHub
parent e583e5b0df
commit 1b120b2c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,11 @@ jobs:
run: |
npm config set registry 'https://wombat-dressing-room.appspot.com/'
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
echo "Publishing puppeteer"
npm publish
npm deprecate puppeteer@"$(node utils/get_deprecated_version_range.js)" "Version no longer supported. Upgrade to @latest"
DEPRECATED_RANGE=$(node utils/get_deprecated_version_range.js)
echo "Deprecating old puppeteer versions: $DEPRECATED_RANGE"
npm deprecate puppeteer@\"$DEPRECATED_RANGE\" "Version no longer supported. Upgrade to @latest"
- name: Publish puppeteer-core
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER_CORE}}