diff --git a/.github/workflows/release-canary.yml b/.github/workflows/release-canary.yml index 45678e541bb9..b25df65e48da 100644 --- a/.github/workflows/release-canary.yml +++ b/.github/workflows/release-canary.yml @@ -88,4 +88,4 @@ jobs: ./x publish snapshot --tag canary env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.RSPACK_CANARY_RELEASE_TOKEN }} diff --git a/scripts/release/version.mjs b/scripts/release/version.mjs index 419a90bfbf6d..09f30e39a648 100644 --- a/scripts/release/version.mjs +++ b/scripts/release/version.mjs @@ -20,7 +20,10 @@ export function getNextName(name) { if (["monorepo"].includes(name)) { return name; } - const nextName = `${name}-canary`; + if (name === "create-rspack") { + return "create-rspack-canary"; + } + const nextName = name.replace(/^@rspack/, "@rspack-canary"); return nextName; }