We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3510549 commit 1fb156cCopy full SHA for 1fb156c
.github/workflows/release.yml
@@ -39,7 +39,13 @@ jobs:
39
- name: Update version in package.json
40
run: |
41
VERSION="${{ steps.version.outputs.version }}"
42
- npm version $VERSION --no-git-tag-version
+ 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
49
50
- name: Install dependencies
51
0 commit comments