Skip to content

Commit 050e0eb

Browse files
committed
Fix bug where the version check job did not account for release candidates
1 parent 65ae629 commit 050e0eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/check-js-build.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
PYPROJECT_PATH="pyproject.toml"
3030
PKGJSON_PATH="js/package.json"
3131
PYPROJECT_VERSION=$(awk -F'"' '/^version/ {print $2; exit}' $PYPROJECT_PATH)
32+
EXPECTED_JS_VERSION=$(echo "$PYPROJECT_VERSION" | sed -E 's/(a|b|rc)[0-9]+$/-&/')
3233
JSPROJECT_VERSION=$(cat $PKGJSON_PATH | jq -r '.version')
33-
if [ "$PYPROJECT_VERSION" != "$JSPROJECT_VERSION" ]; then
34+
if [ "$EXPECTED_JS_VERSION" != "$JSPROJECT_VERSION" ]; then
3435
echo "❌ Version number $JSPROJECT_VERSION in $PKGJSON_PATH does not match version number $PYPROJECT_VERSION in $PYPROJECT_PATH"
3536
exit 1
3637
else

0 commit comments

Comments
 (0)