Skip to content

Commit

Permalink
chore(ci): Enable publish action for more branches (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Aug 7, 2023
1 parent dcacac1 commit 865e977
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
build:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
stc*
if-no-files-found: error
test-macOS-windows-binding:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
needs:
- build
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
- name: Test bindings
run: yarn test
test-linux-x64-gnu-binding:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
needs:
- build
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Test bindings
run: docker run --rm -v $(pwd):/stc -w /stc node:${{ matrix.node }}-slim env yarn test
test-linux-x64-musl-binding:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
needs:
- build
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
- name: Test bindings
run: docker run --rm -v $(pwd):/stc -w /stc node:${{ matrix.node }}-alpine env DISABLE_PLUGIN_E2E_TESTS=true yarn test
test-linux-aarch64-musl-binding:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
name: Test bindings on aarch64-unknown-linux-musl - node@${{ matrix.node }}
needs:
- build
Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
set -e
apk add nodejs npm yarn
test-linux-arm-gnueabihf-binding:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
name: Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }}
needs:
- build
Expand Down Expand Up @@ -453,7 +453,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-wasm:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/ci' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}

name: Publisg Wasm for ${{ matrix.target }}
# needs:
Expand Down

0 comments on commit 865e977

Please sign in to comment.