chore: update deprecation script (#9315)

Removed deprecation for puppeteer-core as we normally don't deprecate it
since it does not download the browser binaries.
This commit is contained in:
Alex Rudenko 2022-11-23 14:53:18 +01:00 committed by GitHub
parent c4803e4a37
commit 611ed7080e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,12 +27,14 @@ jobs:
run: | run: |
npm config set '//wombat-dressing-room.appspot.com/:_authToken' $NODE_AUTH_TOKEN npm config set '//wombat-dressing-room.appspot.com/:_authToken' $NODE_AUTH_TOKEN
npm publish --workspace packages/${GITHUB_REF_NAME%-v*} npm publish --workspace packages/${GITHUB_REF_NAME%-v*}
- name: Deprecate old versions - name: Deprecate old Puppeteer versions
if: ${{ startsWith(github.ref_name, 'puppeteer-v') }} if: ${{ startsWith(github.ref_name, 'puppeteer-v') }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
run: | run: |
npm config set '//wombat-dressing-room.appspot.com/:_authToken' $NODE_AUTH_TOKEN
version_range=$(node tools/get_deprecated_version_range.js) version_range=$(node tools/get_deprecated_version_range.js)
npm deprecate puppeteer@"$version_range" "$version_range is no longer supported" npm deprecate puppeteer@"$version_range" "$version_range is no longer supported"
npm deprecate puppeteer-core@"$version_range" "$version_range is no longer supported"
docker-publish: docker-publish:
name: Publish Docker image name: Publish Docker image
runs-on: ubuntu-latest runs-on: ubuntu-latest