We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83761a7 commit 3069937Copy full SHA for 3069937
.github/workflows/sdk-publish.yml
@@ -32,11 +32,16 @@ jobs:
32
- name: Install dependencies
33
run: npm ci
34
35
- - name: Set package version from tag
+ - name: Set package version from tag (skip if same)
36
run: |
37
VERSION="${GITHUB_REF_NAME#sdk-v}"
38
- echo "Version from tag: $VERSION"
39
- npm version "$VERSION" --no-git-tag-version
+ CURRENT=$(node -p "require('./package.json').version")
+ echo "Version from tag: $VERSION (current: $CURRENT)"
40
+ if [ "$CURRENT" != "$VERSION" ]; then
41
+ npm version "$VERSION" --no-git-tag-version
42
+ else
43
+ echo "Version unchanged; skipping bump"
44
+ fi
45
46
- name: Build
47
run: npm run build
0 commit comments