Files
hyperframes/.github/workflows/release.yml
T
Vance IngallsandClaude Opus 4.6 0c1d344e3f build: migrate from pnpm to bun as package manager
Keep pnpm for publish workflow only (publishConfig overrides + provenance).
Bun handles install, run, and exec for all other workflows.

- Add workspaces field to root package.json for bun workspace support
- Replace pnpm setup with oven-sh/setup-bun in CI and release workflows
- Update all scripts to use bun run / bun run --filter / bunx
- Replace npx with bunx in lefthook hooks
- Update CONTRIBUTING.md with bun commands
- Delete pnpm-lock.yaml, add bun.lock
- Keep pnpm-workspace.yaml for publish workflow compatibility

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 01:49:22 +00:00

53 lines
1.5 KiB
YAML

name: Prepare Release
on:
workflow_dispatch:
inputs:
version:
description: "Version to release (e.g., 0.2.0, 1.0.0-beta.1)"
required: true
type: string
jobs:
prepare:
name: Prepare release PR
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: 22
- run: bun install --frozen-lockfile
- name: Bump versions
run: bun run set-version ${{ inputs.version }}
- name: Create release PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH="release/v${{ inputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "$BRANCH"
git add packages/*/package.json
git commit -m "chore: release v${{ inputs.version }}"
git push origin "$BRANCH"
gh pr create \
--title "chore: release v${{ inputs.version }}" \
--body "$(cat <<'BODY'
## Release v${{ inputs.version }}
Bumps all packages to v${{ inputs.version }}.
**After merging**, the release tag is created automatically, which triggers npm publish.
BODY
)" \
--base main \
--head "$BRANCH"