We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2ba0c7 commit c999559Copy full SHA for c999559
.github/workflows/netlicensing-js-release.yml
@@ -95,8 +95,13 @@ jobs:
95
- name: Bump version and tag
96
id: bump
97
run: |
98
- npm config set tag-version-prefix ''
99
- NEW_VERSION=$(npm version ${{ inputs.version }} -m "Release %s")
+ # 1. Pass the empty prefix directly via CLI flag (bypasses the npm bug)
+ npm version ${{ inputs.version }} --tag-version-prefix="" -m "Release %s"
100
+
101
+ # 2. Extract the clean version directly from package.json
102
+ NEW_VERSION=$(node -p "require('./package.json').version")
103
104
+ # 3. Save it to outputs and push
105
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
106
git push --follow-tags
107
0 commit comments