Version Packages #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Packages | |
| on: | |
| # Weekly on Friday at 9am UTC | |
| schedule: | |
| - cron: "0 9 * * 5" | |
| # Manual trigger for on-demand version prep | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| version: | |
| name: Create Version PR | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version-file: package.json | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Create Version PR | |
| uses: changesets/action@v1 | |
| with: | |
| version: bun run version | |
| title: "chore: version packages" | |
| commit: "chore: version packages" | |
| # Never publish - tags trigger publishing | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |