We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dd5b00 commit 73a1e6bCopy full SHA for 73a1e6b
.github/workflows/publish.yml
@@ -57,6 +57,11 @@ jobs:
57
echo "Stable release: $VERSION (from tag $TAG)"
58
elif [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
59
VERSION="${{ inputs.version }}"
60
+ VERSION="${VERSION#v}"
61
+ if ! echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$'; then
62
+ echo "::error::Invalid version '$VERSION'. Expected semver (e.g. 2.1.0)."
63
+ exit 1
64
+ fi
65
NPM_TAG="latest"
66
echo "Stable release (manual retry): $VERSION"
67
else
0 commit comments