Skip to content

Commit

Permalink
Version 1.3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
skymen committed Jan 15, 2025
1 parent ae40599 commit a5e507b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<img src="./src/icon.svg" width="100" /><br>
# Sample Addon
### Version 1.3.2.4
### Version 1.3.2.5

[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.3.2.4.c3addon/sample_addon-1.3.2.4.c3addon)
[<img src="https://placehold.co/200x50/4493f8/FFF?text=Download&font=montserrat" width="200"/>](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases/download/sample_addon-1.3.2.5.c3addon/sample_addon-1.3.2.5.c3addon)
<br>
<sub> [See all releases](https://github.com/ConstructFund/construct-addon-wizard-scaffold/releases) </sub> <br>

Expand Down
6 changes: 5 additions & 1 deletion publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default "1.3.2.4";
export default "1.3.2.5";

0 comments on commit a5e507b

Please sign in to comment.