Fix Pull Request CI comparing Tag against package.json
This commit is contained in:
parent
9aa8ca05f4
commit
528055fca0
1 changed files with 0 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue