Skip to content

Commit 4248ed8

Browse files
committed
fix(build): bump package version in apps/oxlint in pre-release workflow
1 parent bd2fa90 commit 4248ed8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/reusable_prepare_release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ jobs:
5050
echo EOF
5151
} >> $GITHUB_OUTPUT
5252
53+
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
54+
if: ${{ inputs.name == 'crates' || inputs.name == 'oxlint' }}
55+
56+
# Run NAPI-RS build, because NAPI-RS uses version from `package.json` in the bindings file,
57+
# which is committed to the repo. The version has just been bumped in previous step.
58+
# We don't use the compiled `.node` binary, so only do a development build, as it's faster.
59+
- name: Rebuild NAPI packages bindings
60+
if: ${{ inputs.name == 'crates' }}
61+
run: |
62+
pnpm --filter oxc-minify run build-dev
63+
pnpm --filter oxc-parser run build-dev
64+
pnpm --filter oxc-transform run build-dev
65+
66+
- name: Rebuild Oxlint NAPI bindings
67+
if: ${{ inputs.name == 'oxlint' }}
68+
run: pnpm --filter oxlint run build-dev
69+
5370
# update `Cargo.lock`
5471
- run: cargo check
5572

oxc_release.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ name = "oxlint"
1717
scopes_for_breaking_change = ["lint"]
1818
versioned_files = [
1919
"apps/oxlint/Cargo.toml",
20+
"apps/oxlint/package.json",
2021
"crates/oxc_linter/Cargo.toml",
2122
"editors/vscode/package.json",
2223
"npm/oxlint/package.json",

0 commit comments

Comments
 (0)