Skip to content

Commit

Permalink
Add package version check to frontend release
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Nov 6, 2024
1 parent 382f8e2 commit 2cb0188
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/frontend-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
flavor: latest=false
images: concordium/ccdscan-frontend
tags: type=match,pattern=frontend/(.*),group=1
- name: Ensure tag matches version in package.json
run: |
EXPECTED=$(jq -r .version frontend/package.json)
EXTRACTED="${{ steps.meta.outputs.version }}"
if [ "$EXPECTED" = "$EXTRACTED" ]; then
printf "Extracted version matches the version in package.json ($EXTRACTED).\n"
exit 0
else
printf "ERROR: Extracted version does not match the version in package.json. \nExtracted: '$EXTRACTED'\nExpected: '$EXPECTED'\n"
exit 1
fi
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 2cb0188

Please sign in to comment.