Skip to content

Commit 494fcb2

Browse files
committed
Fix github workflow conditions
1 parent 93241ee commit 494fcb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
build:
5555
name: Build ${{ matrix.settings.target }} with node@22
5656
runs-on: ${{ matrix.settings.host }}
57-
if: ${{ github.ref == 'refs/head/main' || startsWith(github.ref, 'refs/tags/') }}
5857
strategy:
5958
fail-fast: false
6059
matrix:
@@ -134,7 +133,6 @@ jobs:
134133

135134
test-macos-binding:
136135
name: Test ${{ matrix.settings.target }} with node@${{ matrix.node }}
137-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
138136
needs:
139137
- build
140138
strategy:
@@ -313,7 +311,6 @@ jobs:
313311
publish:
314312
name: Publish
315313
runs-on: ubuntu-latest
316-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
317314
needs:
318315
- lint
319316
- test-macos-binding
@@ -340,6 +337,7 @@ jobs:
340337
run: ls -R ./npm
341338
shell: bash
342339
- name: Publish
340+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
343341
run: |
344342
npm config set provenance true
345343
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";

0 commit comments

Comments
 (0)