Skip to content

Commit

Permalink
ci: update version handling in release workflow
Browse files Browse the repository at this point in the history
- Remove 'v' prefix from new version for consistency
- Improve version extraction and environment variable setting
- Ensure clean version number is used in subsequent steps
  • Loading branch information
EvanNotFound committed Dec 2, 2024
1 parent 825ce6e commit 993341e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ jobs:
run: |
CURRENT_VERSION=$(node -p "require('./package.json').version")
NEW_VERSION=$(npm version ${{ github.event.inputs.release-type }} --no-git-tag-version)
NEW_VERSION_CLEAN=${NEW_VERSION#v}
echo "current_version=$CURRENT_VERSION" >> $GITHUB_ENV
echo "new_version=$NEW_VERSION" >> $GITHUB_ENV
echo "new_version=$NEW_VERSION_CLEAN" >> $GITHUB_ENV
- name: Create or Checkout Release Branch
run: |
Expand Down

0 comments on commit 993341e

Please sign in to comment.