Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ jobs:
- name: Create Release PR or Publish
uses: changesets/action@v1
with:
# Resolver MUST stay in `publish:`, not `version:` — `version:` edits
# are committed back to the Version Packages PR. The point is that
# repo source keeps `workspace:*` and only the publish runner sees
# the resolved ranges.
publish: |
node scripts/resolve-workspace-protocols.mjs
bunx changeset publish --tag snapshot
# `publish:` is exec'd directly (no shell), so chaining must live in
# the `ci:publish` script. It rewrites `workspace:*` on the runner,
# then invokes `changeset publish`. Keep it out of `version:` — those
# edits get committed back to the Version Packages PR.
publish: bun run ci:publish
version: bunx changeset version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"workspaces": ["packages/*"],
"scripts": {
"build": "bun run --filter '*' build",
"test": "bun run --filter '*' test"
"test": "bun run --filter '*' test",
"ci:publish": "node scripts/resolve-workspace-protocols.mjs && bunx changeset publish --tag snapshot"
},
"devDependencies": {
"@changesets/cli": "^2.29.8"
Expand Down
Loading