From 5e6ff38399316935aa1b19d7be09e89c1b12eead Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sun, 24 Dec 2023 15:14:41 +1100 Subject: [PATCH] Fix version script --- version | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version b/version index 3b5e6ba6..7ede01f6 100755 --- a/version +++ b/version @@ -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}"` ); } @@ -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");