chore(deps): bump the npm-minor-and-patch group across 1 directory with 2 updates #6331
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
| # check there are changesets present for each package which has been modified, fail if not | |
| # this is run on each pr to ensure changes have a corresponding changeset with a version bump (major/minor/patch) for automatic versioning | |
| # note the versioning is not applied here, this just checks the necessary files (i.e. changesets) are present for versioning once the pr is merged into a versioned branch (e.g. main) | |
| name: changesets | |
| on: | |
| pull_request: | |
| # all branches | |
| types: | |
| - opened # when a PR is opened | |
| - synchronize # when a PR is pushed to | |
| - reopened # when a PR is reopened | |
| - ready_for_review # when a PR is marked as ready for review (e.g. taken off draft mode) | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| check: | |
| name: check | |
| # Hosted, deliberately, and not routed through `vars.GH_RUNNER` like the | |
| # other repos: this repository is public, so a fork PR would run on the | |
| # self-hosted fleet -- executing arbitrary contributor code on hardware we | |
| # own, where it can also persist and poison later trusted jobs. Nothing is | |
| # given up by staying hosted: standard GitHub-hosted runners are free and | |
| # unlimited on public repos, macOS and Windows included. Only *larger* | |
| # runners are billed, so do not "upgrade" a job to one. | |
| # https://docs.github.com/en/billing/reference/actions-runner-pricing | |
| runs-on: ubuntu-latest | |
| # Skip if PR title starts with "Release v" | |
| if: ${{ !startsWith(github.event.pull_request.title, 'Release v') }} | |
| steps: | |
| - name: Print contexts | |
| uses: prosopo/github_actions/.github/actions/print_contexts@a8f2d18145fedb774d5aacbde7b617c6c8852475 # main | |
| with: | |
| INPUTS_CONTEXT: ${{ toJson(inputs) }} | |
| NEEDS_CONTEXT: ${{ toJson(needs) }} | |
| VARS_CONTEXT: ${{ toJson(vars) }} | |
| SECRETS_CONTEXT: ${{ toJson(secrets) }} | |
| - uses: actions/checkout@v7 | |
| with: | |
| token: ${{ secrets.PROSOPONATOR_PAT }} | |
| submodules: 'recursive' | |
| fetch-depth: 0 # required for comparing changesets to the base branch | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - uses: prosopo/github_actions/.github/actions/npm@a8f2d18145fedb774d5aacbde7b617c6c8852475 # main | |
| with: | |
| npm_ci_args: '--include=dev --no-audit --no-fund --prefer-offline' | |
| # checkout the base and head refs | |
| # ensures we have history for both | |
| - name: Checkout base ref | |
| run: git fetch origin ${{ github.base_ref }} && git checkout ${{ github.base_ref }} | |
| - name: Checkout head ref | |
| run: git fetch origin ${{ github.head_ref }} && git checkout ${{ github.head_ref }} | |
| # if this fails, you need to run `npm run changesets:add` (preferred!) or `npm run changesets:empty` for an empty changeset (avoid if possible) | |
| - name: check changesets | |
| run: | | |
| # check that the changesets are present for each package which has been modified | |
| npm run changesets -- --since ${{ github.base_ref }} |