Skip to content

Commit 5b2db2c

Browse files
grichaclaude
andcommitted
Fix release workflow to sync version from git tag
The npm publish step now extracts version from the git tag and updates package.json before building, ensuring the published package version matches the release tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9994f6c commit 5b2db2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ jobs:
154154
bun install
155155
cd web && bun install
156156
157+
- name: Set version from tag
158+
run: |
159+
VERSION=${GITHUB_REF#refs/tags/v}
160+
npm version $VERSION --no-git-tag-version --allow-same-version
161+
157162
- name: Build
158163
run: bun run build
159164

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gricha/perry",
3-
"version": "0.0.3",
3+
"version": "0.1.0",
44
"description": "Self-contained CLI for spinning up Docker-in-Docker development environments with SSH and proxy helpers.",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)