From a5e507b1516917923ef4923030fec9be9c227134 Mon Sep 17 00:00:00 2001 From: Ossama Jouini Date: Thu, 16 Jan 2025 06:09:00 +0900 Subject: [PATCH] Version 1.3.2.5 --- README.md | 4 ++-- publish.js | 6 +++++- version.js | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 963ae09..031e454 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@
# Sample Addon -### Version 1.3.2.4 +### Version 1.3.2.5 -[](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.3.2.4.c3addon/sample_addon-1.3.2.4.c3addon) +[](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.3.2.5.c3addon/sample_addon-1.3.2.5.c3addon)
[See all releases](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases)
diff --git a/publish.js b/publish.js index 751d691..0b2f800 100644 --- a/publish.js +++ b/publish.js @@ -22,6 +22,8 @@ export default function publish(type) { return true; } + chalkUtils.step("Publishing addon"); + // check type is major, minor, patch, revision or a version with the format x.x.x.x let newVersion = ""; if ( @@ -48,14 +50,16 @@ export default function publish(type) { ); return true; } - console.log(newVersion); // update version.js const versionFile = `./version.js`; const versionContent = `export default "${newVersion}";`; fs.writeFileSync(versionFile, versionContent); + chalkUtils.step("Building addon"); + // commit changes execSync(`npm run build`); + chalkUtils.step("Pushing addon to git"); execSync(`git add -A`); execSync(`git commit -m "Version ${newVersion}"`); execSync(`git push`); diff --git a/version.js b/version.js index 6cf0ff8..f2930cd 100644 --- a/version.js +++ b/version.js @@ -1 +1 @@ -export default "1.3.2.4"; \ No newline at end of file +export default "1.3.2.5"; \ No newline at end of file