diff --git a/.github/workflows/reusable_prepare_release.yml b/.github/workflows/reusable_prepare_release.yml index 772aa9ec0ec68..917c6c46a8df9 100644 --- a/.github/workflows/reusable_prepare_release.yml +++ b/.github/workflows/reusable_prepare_release.yml @@ -50,6 +50,23 @@ jobs: echo EOF } >> $GITHUB_OUTPUT + - uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4 + if: ${{ inputs.name == 'crates' || inputs.name == 'oxlint' }} + + # Run NAPI-RS build, because NAPI-RS uses version from `package.json` in the bindings file, + # which is committed to the repo. The version has just been bumped in previous step. + # We don't use the compiled `.node` binary, so only do a development build, as it's faster. + - name: Rebuild NAPI packages bindings + if: ${{ inputs.name == 'crates' }} + run: | + pnpm --filter oxc-minify run build-dev + pnpm --filter oxc-parser run build-dev + pnpm --filter oxc-transform run build-dev + + - name: Rebuild Oxlint NAPI bindings + if: ${{ inputs.name == 'oxlint' }} + run: pnpm --filter oxlint run build-dev + # update `Cargo.lock` - run: cargo check diff --git a/oxc_release.toml b/oxc_release.toml index 433e1a15b324b..25aa8d11768d0 100644 --- a/oxc_release.toml +++ b/oxc_release.toml @@ -17,6 +17,7 @@ name = "oxlint" scopes_for_breaking_change = ["lint"] versioned_files = [ "apps/oxlint/Cargo.toml", + "apps/oxlint/package.json", "crates/oxc_linter/Cargo.toml", "editors/vscode/package.json", "npm/oxlint/package.json",