Fixed issue with version in CI
This commit is contained in:
parent
cc55ec3a87
commit
e4b0b87e9f
3 changed files with 11 additions and 2 deletions
|
@ -11,7 +11,7 @@ jobs:
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Check if Version in package.json matches Tag
|
- name: Check if Version in package.json matches Tag
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
if test $VERSION != "${{ github.ref_name }}"; then
|
if test $VERSION != "${{ github.ref_name }}"; then
|
||||||
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Check if Version in package.json matches Tag
|
- name: Check if Version in package.json matches Tag
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " )
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
if test $VERSION != "${{ github.ref_name }}"; then
|
if test $VERSION != "${{ github.ref_name }}"; then
|
||||||
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -4,6 +4,15 @@ on:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
get-version:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checking Out Repository Code
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
|
- name: Check if Version in package.json matches Tag
|
||||||
|
run: |
|
||||||
|
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
|
||||||
|
echo "Version is: '$VERSION'";
|
||||||
astro-check:
|
astro-check:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
||||||
|
|
Loading…
Reference in a new issue