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 c7a8d19 commit bf78e03Copy full SHA for bf78e03
.github/workflows/npm-publish.yml
@@ -22,10 +22,14 @@ jobs:
22
version: 8
23
- name: Update version and publish
24
run: |
25
- # Remove 'v' prefix from tag if present
26
VERSION=${GITHUB_REF#refs/tags/}
27
VERSION=${VERSION#v}
28
- pnpm version $VERSION --no-git-tag-version
+ CURRENT_VERSION=$(jq -r .version package.json)
+
29
+ if [ "$VERSION" != "$CURRENT_VERSION" ]; then
30
+ pnpm version "$VERSION" --no-git-tag-version
31
+ fi
32
33
pnpm publish --no-git-checks
34
env:
35
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments