Skip to content

Commit

Permalink
Fix version script
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonzlin committed Dec 24, 2023
1 parent e767ed2 commit 5e6ff38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion version
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ for (const f of [
for (const f of ["minhtml/Cargo.toml"]) {
replaceInFile(
f,
/^minify-html = \{ version = "\d+\.\d+\.\d+"/,
/^minify-html = \{ version = "\d+\.\d+\.\d+"/m,
`minify-html = { version = "${NEW_VERSION}"`
);
}
Expand Down Expand Up @@ -174,4 +174,5 @@ cmd("git", "commit", "-m", NEW_VERSION);
cmd("git", "tag", "-a", `v${NEW_VERSION}`, "-m", "");
cmd("cargo", "publish", { workingDir: `${__dirname}/minify-html` });
cmd("cargo", "publish", { workingDir: `${__dirname}/minify-html-onepass` });
cmd("cargo", "publish", { workingDir: `${__dirname}/minhtml` }); // This must come after the above as it depends on the just-published version of those.
cmd("git", "push", "--follow-tags");

0 comments on commit 5e6ff38

Please sign in to comment.