chore: deprecate old versions (#9277)

This commit is contained in:
jrandolf 2022-11-15 12:54:25 +01:00 committed by GitHub
parent be33929770
commit 65007a29b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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);