Fix publishing CI

This commit is contained in:
Andras Schmelczer 2025-07-10 22:46:26 +01:00
parent 12c367db21
commit 8f1d2ca4b3
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -3,6 +3,7 @@ name: Check
on:
push:
branches: ['main']
tags: ['v*']
pull_request:
branches: ['main']
@ -61,7 +62,7 @@ jobs:
publish-crate:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
@ -85,7 +86,7 @@ jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4