fix: use BUMPY_GH_TOKEN for draft release operations #192
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: CI | |
| on: pull_request | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - run: cd packages/bumpy && bunx varlock load # need ENV types for tsdown config file | |
| - run: bun run check | |
| # publish tests create temp git repos with commits, which requires a git identity | |
| - run: git config --global user.name "CI" && git config --global user.email "ci@example.com" | |
| - run: bun run test | |
| bumpy-check: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| # --- You wont need this part --- | |
| # Build first since we use the local built version of bumpy instead of the published one | |
| - run: bun run --filter @varlock/bumpy build | |
| # run bun install again to make the now built CLI available | |
| - run: bun install | |
| # ------------------------------- | |
| # 🐸 This is the important part - checks for missing bump files and posts/updates a PR comment with the release plan | |
| - run: bunx @varlock/bumpy ci check | |
| env: | |
| GH_TOKEN: ${{ github.token }} |