We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d23f65 commit e250528Copy full SHA for e250528
.github/workflows/release.yml
@@ -45,7 +45,12 @@ jobs:
45
- name: Update package version
46
run: |
47
TAG_VERSION=${GITHUB_REF#refs/tags/v}
48
- npm version $TAG_VERSION --no-git-tag-version
+ CURRENT_VERSION=$(node -p "require('./package.json').version")
49
+ if [ "$TAG_VERSION" != "$CURRENT_VERSION" ]; then
50
+ npm version $TAG_VERSION --no-git-tag-version
51
+ else
52
+ echo "Version already matches tag version $TAG_VERSION, skipping npm version"
53
+ fi
54
55
- name: Publish to NPM
56
run: npm publish --access public
0 commit comments