Skip to content

Commit 03e874d

Browse files
committed
ci: use bun to handle workspace protocol during publish
- Alias npm to bun in CI to enable bun's automatic workspace:* replacement - Update publish scripts to bypass changeset's npm-only limitation - Ensure internal dependencies are correctly versioned on NPM
1 parent aaed17f commit 03e874d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.changeset/silly-friends-pull.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thaterror/core": patch
3+
"@thaterror/pino-adapter": patch
4+
---
5+
6+
fix: resolve workspace protocol in package.json during release

.github/workflows/changeset-release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ jobs:
3232
- name: Install Dependencies
3333
run: bun install
3434

35-
- name: Alias npm to bun
36-
run: |
37-
mkdir -p $HOME/.local/bin
38-
ln -s $(which bun) $HOME/.local/bin/npm
39-
echo "$HOME/.local/bin" >> $GITHUB_PATH
40-
4135
- name: Create PR or Publish
4236
id: changesets
4337
uses: changesets/action@v1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"precommit:check": "bun test && bun run lint:check && bun run type-check && bun run syncpack:list",
2929
"install:clean": "bun pm cache rm && bunx rimraf bun.lock bun.lockb && bun install",
3030
"version": "changeset version && bun update --lockfile-only",
31-
"release": "changeset publish",
31+
"release": "for dir in packages/*; do (cd \"$dir\" && bun publish || true); done && changeset tag",
3232
"change": "changeset"
3333
}
3434
}

0 commit comments

Comments
 (0)