Skip to content

Commit 93dad7b

Browse files
chore: PR feedback exit with non-zero on regex not match
1 parent 21c7e2a commit 93dad7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
id: npm-tag
4848
shell: bash
4949
run: |
50+
set -e
5051
VERSION="${{ steps.get-version.outputs.VERSION }}"
5152
5253
# Extract the release channel (latest, alpha, beta, rc)
@@ -61,7 +62,8 @@ jobs:
6162
RELEASE_CHANNEL="latest"
6263
fi
6364
else
64-
RELEASE_CHANNEL="latest"
65+
echo "::error title=Invalid Version::Encountered unexpected version ${{ steps.get-version.outputs.VERSION }}, cannot proceed!"
66+
exit 1
6567
fi
6668
6769
echo "RELEASE_CHANNEL=${RELEASE_CHANNEL}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)