Skip to content

Commit 2e4bdfe

Browse files
committed
sdk: Remove shortcut "publish-sdk", update PUBLISHING.md
1 parent 74680e2 commit 2e4bdfe

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

.github/workflows/sdk-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Publish to npm
103103
run: |
104104
cd sdk
105-
bun run publish-sdk
105+
bun run scripts/publish.ts
106106
env:
107107
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108108

sdk/PUBLISHING.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
To publish the SDK to npm:
66

77
```bash
8-
# Dry run (recommended first)
9-
bun run publish-dry-run
10-
118
# Publish to npm
12-
bun run publish-sdk
9+
bun run release
1310
```
1411

1512
## What the Publishing Script Does
@@ -34,19 +31,17 @@ This replaces the previous `tsup` + manual package.json manipulation approach.
3431
## Available Scripts
3532

3633
- `bun run build` - Build TypeScript only
37-
- `bun run build:verify` - Build + run smoke tests
34+
- `bun run verify` - Build + run smoke tests
3835
- `bun run smoke-test` - Run smoke tests on existing build
3936
- `bun run clean` - Remove dist directory
40-
- `bun run publish-dry-run` - Full build + verification (no publish)
41-
- `bun run publish-sdk` - Full build + publish to npm
37+
- `bun run release` - Remote build + publish to npm
4238
- `bun run typecheck` - Type checking only
4339

4440
## Before Publishing
4541

4642
1. Update version in `package.json`
4743
2. Update `CHANGELOG.md` with new changes
48-
3. Run `bun run publish-dry-run` to verify
49-
4. Run `bun run publish-sdk` to publish
44+
3. Run `bun run release` to publish
5045

5146
## Package Contents
5247

sdk/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
"verify:skip-build": "bun run scripts/verify.ts --skip-build",
3333
"smoke-test:dist": "bun run smoke-test-dist.ts",
3434
"prepare-dist": "bun run scripts/publish.ts --dry-run",
35-
"publish-sdk": "bun run scripts/publish.ts --public",
36-
"publish-dry-run": "bun run verify && bun run scripts/publish.ts --dry-run",
3735
"release": "bun run scripts/release.js",
3836
"fetch-ripgrep": "bun scripts/fetch-ripgrep.ts",
3937
"prepack": "bun run build",

sdk/scripts/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function main() {
3434

3535
if (isDryRun) {
3636
log('Dry run complete! Package is ready for publishing.')
37-
log('To publish for real, run: bun run publish-sdk')
37+
log('To publish for real, run: bun run release')
3838
return
3939
}
4040

0 commit comments

Comments
 (0)