Skip to content

Commit 8e559de

Browse files
committed
ci: release version change fixup
1 parent 34c5e05 commit 8e559de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ jobs:
4242
- name: Check for version change
4343
run: |
4444
CURRENT_VERSION=$(npm pkg get version)
45-
echo "VERSION_CHANGED=$([[ "$CURRENT_VERSION" == "${{ steps.release.outputs.resolved_version }}" ]] && echo true)" >> $GITHUB_ENV
45+
CURRENT_VERSION="${CURRENT_VERSION%\"}"
46+
CURRENT_VERSION="${CURRENT_VERSION#\"}"
47+
NEW_VERSION="${{ steps.release.outputs.resolved_version }}"
48+
echo "Current Version: $CURRENT_VERSION"
49+
echo "New Version: $NEW_VERSION"
50+
V_CHANGED=false [ "$CURRENT_VERSION" != "$NEW_VERSION" ] && V_CHANGED=true
51+
echo "VERSION_CHANGED=$V_CHANGED" >> $GITHUB_ENV
52+
echo "Version Changed: $V_CHANGED"
4653
4754
- name: Update package.json version
4855
if: env.VERSION_CHANGED == 'true'

0 commit comments

Comments
 (0)