Skip to content

Commit 9bba907

Browse files
committed
Explicitly filter published packages to only the 3 main packages
1 parent 85f88e6 commit 9bba907

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
run: pnpm run test
4747

4848
- name: Publish to npm
49-
run: pnpm publish -r --access public --no-git-checks
49+
run: |
50+
pnpm --filter @salesforce/b2c-tooling-sdk publish --access public --no-git-checks
51+
pnpm --filter @salesforce/b2c-cli publish --access public --no-git-checks
52+
pnpm --filter @salesforce/b2c-dx-mcp publish --access public --no-git-checks
5053
5154
- name: Create GitHub Release
5255
run: gh release create "$GITHUB_REF_NAME" --generate-notes

PUBLISHING.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The project uses:
1111

1212
## Published Packages
1313

14+
Only these three packages are published to npm:
15+
1416
| Package | npm | Description |
1517
|---------|-----|-------------|
1618
| `@salesforce/b2c-cli` | [npm](https://www.npmjs.com/package/@salesforce/b2c-cli) | Command line interface |
@@ -19,6 +21,12 @@ The project uses:
1921

2022
These packages are **linked** in changesets configuration, meaning they always version together.
2123

24+
**Not published:**
25+
- `@salesforce/b2c-plugin-example-config` - Example plugin for reference only
26+
- `@salesforce/b2c-cli-root` - Monorepo root package
27+
28+
The publish workflow explicitly filters to only these three packages using `--filter`.
29+
2230
## Architecture
2331

2432
### Workflow 1: `changesets.yml` - Version Management
@@ -177,9 +185,11 @@ Test what would be published without actually publishing:
177185

178186
```bash
179187
pnpm run build
180-
pnpm publish -r --access public --dry-run
188+
pnpm --filter @salesforce/b2c-tooling-sdk --filter @salesforce/b2c-cli --filter @salesforce/b2c-dx-mcp publish --access public --dry-run
181189
```
182190

191+
Note: Only the three main packages are published. The example plugin and root package are excluded.
192+
183193
### Test changeset version
184194

185195
See what versions would be bumped:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"docs:preview": "vitepress preview docs",
1818
"changeset": "changeset",
1919
"version": "changeset version",
20-
"release": "pnpm run build && pnpm publish -r --access public"
20+
"release": "pnpm run build && pnpm --filter @salesforce/b2c-tooling-sdk --filter @salesforce/b2c-cli --filter @salesforce/b2c-dx-mcp publish --access public"
2121
},
2222
"keywords": [],
2323
"author": "",

0 commit comments

Comments
 (0)