Skip to content

Commit a7a22bc

Browse files
committed
Fix an error on npm publish
$ Run npm publish --tag v1.8 npm error Tag name must not be a valid SemVer range: v1.8 npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-03-16T22_57_22_956Z-debug-0.log Error: Process completed with exit code 1. https://github.com/ruby/prism/actions/runs/23169830009/job/67318860180
1 parent 21b2d6d commit a7a22bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "tag=latest" >> "$GITHUB_OUTPUT"
5252
else
5353
MINOR=$(echo "$PACKAGE_VERSION" | cut -d. -f1,2)
54-
echo "tag=v$MINOR" >> "$GITHUB_OUTPUT"
54+
echo "tag=stable-$MINOR" >> "$GITHUB_OUTPUT"
5555
fi
5656
5757
- run: npm publish --tag ${{ steps.npm-tag.outputs.tag }}

0 commit comments

Comments
 (0)