ci: fix version check
This commit is contained in:
parent
823fa2d0c3
commit
e32388e3ac
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
|
|
||||||
- name: check that tag matches package.json version
|
- name: check that tag matches package.json version
|
||||||
run: |
|
run: |
|
||||||
pkg_version="$(jq -r .version < package.json)"
|
pkg_version="v$(jq -r .version < package.json)"
|
||||||
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then
|
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then
|
||||||
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2
|
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user