Fix Pull Request CI comparing Tag against package.json

This commit is contained in:
Neshura 2024-01-06 14:07:10 +01:00
parent 9aa8ca05f4
commit 528055fca0
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