Skip to content

Commit

Permalink
ci: fix release napi script
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jan 19, 2025
1 parent 93d643e commit 9dc65cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/reusable_release_napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
id: version
with:
static-checking: localIsNew
file-url: https://unpkg.com/oxc-${name}@latest/package.json
file-name: npm/oxc-${name}/package.json
file-url: https://unpkg.com/oxc-${{ inputs.name }}@latest/package.json
file-name: npm/oxc-${{ inputs.name }}/package.json

- name: Set version name
if: steps.version.outputs.changed == 'true'
Expand All @@ -49,6 +49,9 @@ jobs:
name: ${{ inputs.name }}
outputs:
version: ${{ env.version }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -136,7 +139,7 @@ jobs:
if: ${{ contains(matrix.target, 'x86') && !contains(matrix.target, 'musl') }} # Need docker for aarch64

- name: Test
working-directory: napi/${name}
working-directory: napi/${{ inputs.name }}
if: ${{ contains(matrix.target, 'x86') && !contains(matrix.target, 'musl') }} # Need docker for aarch64
run: pnpm run test

Expand Down

0 comments on commit 9dc65cf

Please sign in to comment.