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: |
|
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
|
||||||
|
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:
|
docker-publish:
|
||||||
name: Publish Docker image
|
name: Publish Docker image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -18,13 +18,10 @@ const {
|
|||||||
versionsPerRelease,
|
versionsPerRelease,
|
||||||
lastMaintainedChromiumVersion,
|
lastMaintainedChromiumVersion,
|
||||||
} = require('../versions.js');
|
} = require('../versions.js');
|
||||||
let version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
const version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
||||||
if (version.toLowerCase() === 'next') {
|
if (version.toLowerCase() === 'next') {
|
||||||
console.error('Unexpected NEXT Puppeteer version in versions.js');
|
console.error('Unexpected NEXT Puppeteer version in versions.js');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
if (version.startsWith('v')) {
|
console.log(`< ${version.substring(1)}`);
|
||||||
version = version.substring(1);
|
|
||||||
}
|
|
||||||
console.log('<' + version);
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user