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: + - '*'