Force dry run temporarily

This commit is contained in:
Daniel Imms
2023-11-01 07:14:19 -07:00
parent 5196ac5c8f
commit 2fb9702a3a
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ jobs:
- name: Publish to npm
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: node ./bin/publish.js
run: node ./bin/publish.js --dry
+3 -4
View File
@@ -41,10 +41,10 @@ const addonPackageDirs = [
console.log(`Checking if addons need to be published`);
for (const p of addonPackageDirs) {
const addon = path.basename(p);
if (changedFiles.some(e => e.includes(addon))) {
// if (changedFiles.some(e => e.includes(addon))) {
console.log(`Try publish ${addon}`);
checkAndPublishPackage(p);
}
// }
}
// Publish website if it's a stable release
@@ -94,8 +94,7 @@ function checkAndPublishPackage(packageDir) {
function getNextBetaVersion(packageJson) {
if (!/^\d+\.\d+\.\d+$/.exec(packageJson.version)) {
console.error('The package.json version must be of the form x.y.z');
process.exit(1);
throw new Error('The package.json version must be of the form x.y.z');
}
const tag = 'beta';
const stableVersion = packageJson.version.split('.');