Fix Pull Request CI comparing Tag against package.json
All checks were successful
Run Tests on Code / test (push) Successful in 27s
Build Docker Image on Pull Request / test (pull_request) Successful in 5m34s

This commit is contained in:
Neshura 2024-01-06 14:07:10 +01:00
parent 00d75663b3
commit b8a0c155b0
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -44,17 +44,6 @@ jobs:
- name: Run Linter
run: yarn lint
- name: Check if Version in package.json matches Tag
run: |
echo "Test"
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" )
if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1
else
echo "Version is: '$VERSION'";
fi
- name: Build Site
run: yarn build