From f4b0e6ee74c6a1ce0067ab4fd1525811be35072b Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 10 Aug 2026 22:14:22 +0800 Subject: [PATCH] chore(ci): skip published native packages --- .github/workflows/release.yml | 5 +---- .gitignore | 6 +++++- packages/rstack/npm/pnpm-workspace.yaml | 3 +++ 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 packages/rstack/npm/pnpm-workspace.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9ed28a0..abe72f86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,8 +98,5 @@ jobs: env: NPM_TAG: ${{ inputs.npm_tag }} run: | - for package_dir in packages/rstack/npm/*; do - pnpm publish "$package_dir" --tag "$NPM_TAG" --no-git-checks - done - + pnpm --dir packages/rstack/npm -r publish --tag "$NPM_TAG" --no-git-checks pnpm --filter './packages/*' -r stage publish --tag "$NPM_TAG" --no-git-checks diff --git a/.gitignore b/.gitignore index f97dd4ad..ef2bf49b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,11 @@ doc_build /target/ /artifacts/ /packages/rstack/*.node -/packages/rstack/npm/ + +# Native packages are generated +/packages/rstack/npm/* +# Keep only the publish workspace manifest +!/packages/rstack/npm/pnpm-workspace.yaml # Temp files test-temp-* diff --git a/packages/rstack/npm/pnpm-workspace.yaml b/packages/rstack/npm/pnpm-workspace.yaml new file mode 100644 index 00000000..e34eedde --- /dev/null +++ b/packages/rstack/npm/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +# Isolate generated native packages from the root workspace while enabling recursive publish. +packages: + - '*'