We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a6b6fa commit def502cCopy full SHA for def502c
1 file changed
.github/workflows/publish.yml
@@ -48,12 +48,14 @@ jobs:
48
49
- name: Verify tag matches package version
50
if: ${{ inputs.tag != '' }}
51
+ env:
52
+ INPUT_TAG: ${{ inputs.tag }}
53
run: |
54
set -euo pipefail
55
package_version=$(node -p "require('./package.json').version")
56
expected_tag="v${package_version}"
- if [ "${expected_tag}" != "${{ inputs.tag }}" ]; then
- echo "Input tag ${{ inputs.tag }} does not match package.json version ${package_version} (${expected_tag})"
57
+ if [ "${expected_tag}" != "${INPUT_TAG}" ]; then
58
+ echo "Input tag ${INPUT_TAG} does not match package.json version ${package_version} (${expected_tag})"
59
exit 1
60
fi
61
0 commit comments