From 2c2187fd57ea9acb6f283884633306a998c78895 Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Thu, 8 Aug 2024 14:00:38 +0800 Subject: [PATCH] release v1.0.0-beta.4 --- package.json | 2 +- scripts/release.mjs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f848b34..ce95b3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/plugin-preact-refresh", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "repository": "https://github.com/rspack-contrib/rspack-plugin-preact-refresh", "license": "MIT", "description": "Preact refresh plugin for rspack", diff --git a/scripts/release.mjs b/scripts/release.mjs index 86b4904..d9197fd 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -54,13 +54,14 @@ if (RELEASE_DRY_RUN !== 'true') { await $`git config --global user.name "github-actions[bot]"`; await $`git config --global user.email "github-actions[bot]@users.noreply.github.com"`; await $`git status`; - const tagName = `v${RELEASE_TAG}`; + const tagName = `v${nextVersion}`; await $`git tag ${tagName}`; await $`git push origin ${tagName}`; console.info(`Pushed tag successfully`); fs.removeSync(npmrcPath); await $`git add --all`; - await $`git commit -m "release ${tagName}"`; + const commitMsg = `release ${tagName}`; + await $`git commit -m ${commitMsg}`; await $`git push`; console.info(`Pushed branch successfully`); } catch (e) {