Fix publishing CI
This commit is contained in:
parent
12c367db21
commit
8f1d2ca4b3
1 changed files with 3 additions and 2 deletions
5
.github/workflows/check.yml
vendored
5
.github/workflows/check.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue