Fix publishing CI

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

View file

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