test changeset check #4
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: Changeset check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| changeset-check: | |
| name: Changed public packages have changesets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| # changeset status diffs against the base branch, so full history is required | |
| fetch-depth: 0 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # Fails when a public (publishable) package changed since the base branch | |
| # and no changeset covers it. Private packages and apps are excluded via | |
| # `privatePackages: { version: false }` in .changeset/config.json. | |
| - name: Check changesets for changed public packages | |
| run: pnpm changeset status --since=origin/${{ github.base_ref }} |