Skip to content

Commit 4afcc32

Browse files
committed
build(oxlint): fix publish workflows to publish @oxlint/plugins package
1 parent c0a3f7d commit 4afcc32

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release_apps.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ jobs:
272272
id-token: write # for `pnpm publish --provenance`
273273
env:
274274
package_path: npm/oxlint
275+
plugins_package_path: npm/oxlint-plugins
275276
npm_dir: npm/oxlint-release
276277
PUBLISH_FLAGS: "--provenance --access public --no-git-checks"
277278
steps:
@@ -299,7 +300,7 @@ jobs:
299300

300301
- name: Copy dist files to @oxlint/plugins npm package
301302
run: |
302-
cp apps/oxlint/dist-pkg-plugins/* npm/oxlint-plugins/
303+
cp apps/oxlint/dist-pkg-plugins/* ${plugins_package_path}/
303304
304305
- run: npm install -g npm@latest # For trusted publishing support
305306

@@ -311,7 +312,10 @@ jobs:
311312
# Trusted publishing is configured, publish token is not required.
312313
# Publish sub-packages and adds `optionalDependencies` to main package.
313314
pnpm napi pre-publish --no-gh-release -t npm --package-json-path ${package_path}/package.json --npm-dir ${npm_dir}
315+
# Publish `oxlint` package
314316
pnpm publish ${package_path}/ ${PUBLISH_FLAGS}
317+
# Publish `@oxlint/plugins` package
318+
pnpm publish ${plugins_package_path}/ ${PUBLISH_FLAGS}
315319
316320
build-oxfmt:
317321
needs: check

npm/oxlint-plugins/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oxlint/plugins",
3-
"version": "1.43.0",
3+
"version": "1.46.0",
44
"description": "Plugin utilities for Oxlint",
55
"keywords": [
66
"eslint",

oxc_release.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ versioned_files = [
2121
"apps/oxlint/package.json",
2222
"crates/oxc_linter/Cargo.toml",
2323
"npm/oxlint/package.json",
24+
"npm/oxlint-plugins/package.json",
2425
]
2526

2627
[[releases]]

0 commit comments

Comments
 (0)