Skip to content

Commit 4c253ed

Browse files
blazejpawlakclaude
andcommitted
fix(release): add Node 22, fix CalVer version propagation
- Add actions/setup-node@v4 (Node 22) before setup-bun so semantic-release v25 gets a compatible runtime (requires ^22.14.0 || >=24.10.0) - Return { nextRelease } from calver prepare so semantic-release's getNextInput() merge propagates the CalVer version to downstream plugins Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b43c172 commit 4c253ed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
fetch-depth: 0
2222
ref: ${{ github.event.workflow_run.head_sha }}
2323

24+
- name: Setup Node.js
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
26+
with:
27+
node-version: 22
28+
2429
- name: Setup Bun
2530
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2631
with:

release/calver.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ module.exports = {
3434
logger.log("CalVer: %s → %s", nextRelease.version, version);
3535
nextRelease.version = version;
3636
nextRelease.gitTag = `v${version}`;
37+
return { nextRelease: { version, gitTag: `v${version}` } };
3738
},
3839
};

0 commit comments

Comments
 (0)