Fix docs updates on prereleases

pull/4615/merge
Francisco Giordano 1 year ago
parent ae986db608
commit f0316a4cef
  1. 7
      scripts/update-docs-branch.js

@ -21,6 +21,13 @@ if (!match) {
process.exit(1);
}
const pkgVersion = require('../package.json').version;
if (pkgVersion.includes('-') && !pkgVersion.includes('.0.0-')) {
console.error('Refusing to update docs: non-major prerelease detected');
process.exit(0);
}
const current = match.groups;
const docsBranch = `docs-v${current.major}.x`;

Loading…
Cancel
Save