Skip to content

Commit

Permalink
feat(ci): check tag before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Oct 14, 2023
1 parent 698dec5 commit b3924c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
- name: 📥 Checkout
uses: actions/checkout@v3

- name: 🛑 Check Tag
run: |
pkg_version="v$(jq -r .version < package.json)"
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2
exit 1
fi
- name: 👷 Build Dependencies
run: |
dnf install -y make automake gcc gcc-c++ kernel-devel cmake git
Expand Down

0 comments on commit b3924c7

Please sign in to comment.