Skip to content

Commit

Permalink
Fix github workflow conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaHydrae committed Feb 2, 2025
1 parent 93241ee commit 494fcb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
build:
name: Build ${{ matrix.settings.target }} with node@22
runs-on: ${{ matrix.settings.host }}
if: ${{ github.ref == 'refs/head/main' || startsWith(github.ref, 'refs/tags/') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -134,7 +133,6 @@ jobs:

test-macos-binding:
name: Test ${{ matrix.settings.target }} with node@${{ matrix.node }}
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs:
- build
strategy:
Expand Down Expand Up @@ -313,7 +311,6 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs:
- lint
- test-macos-binding
Expand All @@ -340,6 +337,7 @@ jobs:
run: ls -R ./npm
shell: bash
- name: Publish
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
npm config set provenance true
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
Expand Down

0 comments on commit 494fcb2

Please sign in to comment.