There was an error while loading. Please reload this page.
1 parent b5df103 commit f4da5d5Copy full SHA for f4da5d5
1 file changed
.github/workflows/deploy.yml
@@ -37,6 +37,13 @@ jobs:
37
run: |
38
VERSION="${{ github.ref_name }}"
39
VERSION="${VERSION#v}" # Strip 'v' prefix if present
40
+ CURRENT="$(node -p "require('./package.json').version")"
41
+ # Idempotent: skip when the version was already bumped before the
42
+ # release was cut (npm version errors on an unchanged version).
43
+ if [[ "$CURRENT" == "$VERSION" ]]; then
44
+ echo "package.json already at $VERSION, skipping bump"
45
+ exit 0
46
+ fi
47
echo "Updating package.json version to $VERSION"
48
npm version $VERSION --no-git-tag-version
49
git config user.name "github-actions[bot]"
0 commit comments