From f956701302f7d5ed220aa3893b82441edb5922ed Mon Sep 17 00:00:00 2001 From: humble-little-bear Date: Mon, 24 Aug 2026 05:58:59 +0000 Subject: [PATCH] fix(canary): append canary suffix without bumping version npm version prerelease bumped the patch version (0.5.0 -> 0.5.1-canary-*.0). Instead, append the canary suffix directly to the current version so the canary tag is e.g. 0.5.0-canary-. --- .github/workflows/canary-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary-publish.yml b/.github/workflows/canary-publish.yml index b82bed20..0f36e650 100644 --- a/.github/workflows/canary-publish.yml +++ b/.github/workflows/canary-publish.yml @@ -32,7 +32,10 @@ jobs: - name: Update package version run: | SHORT_COMMIT_ID=$(git log -1 --pretty=format:%h) - npm version prerelease --preid="canary-$SHORT_COMMIT_ID" + BASE_VERSION=$(node -p "require('./package.json').version") + # Append the canary suffix to the current version without bumping it, + # e.g. 0.5.0 -> 0.5.0-canary- + npm pkg set version="${BASE_VERSION}-canary-${SHORT_COMMIT_ID}" - name: Build run: pnpm build