Fix docs updates on prereleases
This commit is contained in:
@ -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`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user