Skip to content

Commit

Permalink
chore: update deprecation script (#9315)
Browse files Browse the repository at this point in the history
Removed deprecation for puppeteer-core as we normally don't deprecate it
since it does not download the browser binaries.
  • Loading branch information
OrKoN committed Nov 23, 2022
1 parent c4803e4 commit 611ed70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ jobs:
run: |
npm config set '//wombat-dressing-room.appspot.com/:_authToken' $NODE_AUTH_TOKEN
npm publish --workspace packages/${GITHUB_REF_NAME%-v*}
- name: Deprecate old versions
- name: Deprecate old Puppeteer versions
if: ${{ startsWith(github.ref_name, 'puppeteer-v') }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
run: |
npm config set '//wombat-dressing-room.appspot.com/:_authToken' $NODE_AUTH_TOKEN
version_range=$(node tools/get_deprecated_version_range.js)
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:
name: Publish Docker image
runs-on: ubuntu-latest
Expand Down

0 comments on commit 611ed70

Please sign in to comment.