Fix Pull Request CI comparing Tag against package.json
This commit is contained in:
parent
00d75663b3
commit
b8a0c155b0
1 changed files with 0 additions and 11 deletions
|
@ -44,17 +44,6 @@ jobs:
|
||||||
- name: Run Linter
|
- name: Run Linter
|
||||||
run: yarn lint
|
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
|
- name: Build Site
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue