File tree Expand file tree Collapse file tree 4 files changed +6
-13
lines changed
Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55To 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
46421 . Update version in ` package.json `
47432 . 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments