chore: deprecate old versions (#9277)
This commit is contained in:
parent
be33929770
commit
65007a29b5
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -35,6 +35,11 @@ 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
|
||||
run: |
|
||||
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
|
||||
|
@ -18,13 +18,10 @@ const {
|
||||
versionsPerRelease,
|
||||
lastMaintainedChromiumVersion,
|
||||
} = require('../versions.js');
|
||||
let version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
||||
const version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
||||
if (version.toLowerCase() === 'next') {
|
||||
console.error('Unexpected NEXT Puppeteer version in versions.js');
|
||||
process.exit(1);
|
||||
}
|
||||
if (version.startsWith('v')) {
|
||||
version = version.substring(1);
|
||||
}
|
||||
console.log('<' + version);
|
||||
console.log(`< ${version.substring(1)}`);
|
||||
process.exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user