mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix deprecate command (#8000)
This commit is contained in:
parent
55c38a25c8
commit
7e2b47c974
2
.github/workflows/publish-on-tag.yml
vendored
2
.github/workflows/publish-on-tag.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
npm publish
|
||||
DEPRECATED_RANGE=$(node utils/get_deprecated_version_range.js)
|
||||
echo "Deprecating old puppeteer versions: $DEPRECATED_RANGE"
|
||||
npm deprecate puppeteer@\"$DEPRECATED_RANGE\" "Version no longer supported. Upgrade to @latest"
|
||||
npm deprecate puppeteer@$DEPRECATED_RANGE "Version no longer supported. Upgrade to @latest"
|
||||
- name: Publish puppeteer-core
|
||||
env:
|
||||
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER_CORE}}
|
||||
|
@ -18,10 +18,13 @@ const {
|
||||
versionsPerRelease,
|
||||
lastMaintainedChromiumVersion,
|
||||
} = require('../versions.js');
|
||||
const version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
||||
let version = versionsPerRelease.get(lastMaintainedChromiumVersion);
|
||||
if (version.toLowerCase() === 'next') {
|
||||
console.error('Unexpected NEXT Puppeteer version in versions.js');
|
||||
process.exit(1);
|
||||
}
|
||||
console.log('< ' + version);
|
||||
if (version.startsWith('v')) {
|
||||
version = version.substring(1);
|
||||
}
|
||||
console.log('<' + version);
|
||||
process.exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user