Skip to content

Commit 1fb156c

Browse files
committed
release fix
1 parent 3510549 commit 1fb156c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ jobs:
3939
- name: Update version in package.json
4040
run: |
4141
VERSION="${{ steps.version.outputs.version }}"
42-
npm version $VERSION --no-git-tag-version
42+
CURRENT_VERSION=$(node -p "require('./package.json').version")
43+
if [ "$CURRENT_VERSION" != "$VERSION" ]; then
44+
echo "Updating version from $CURRENT_VERSION to $VERSION"
45+
npm pkg set version=$VERSION
46+
else
47+
echo "Version is already $VERSION, skipping update"
48+
fi
4349
4450
- name: Install dependencies
4551
run: |

0 commit comments

Comments
 (0)