Bump eslint-plugin-jest from 29.11.1 to 29.11.2 in the all group (#2953) #1334
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: Release | |
| on: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| checks: write | |
| statuses: write | |
| jobs: | |
| release-main: | |
| name: Main | |
| if: ${{ github.repository == 'primer/css' && github.ref_name == 'main' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - id: get-access-token | |
| uses: camertron/github-app-installation-auth-action@v1 | |
| with: | |
| app-id: ${{ vars.PRIMER_APP_ID_SHARED }} | |
| private-key: ${{ secrets.PRIMER_APP_PRIVATE_KEY_SHARED }} | |
| client-id: ${{ vars.PRIMER_APP_CLIENT_ID_SHARED }} | |
| client-secret: ${{ secrets.PRIMER_APP_CLIENT_SECRET_SHARED }} | |
| installation-id: ${{ vars.PRIMER_APP_INSTALLATION_ID_SHARED }} | |
| - name: Create release pull request or publish to npm | |
| id: changesets | |
| uses: changesets/action@master | |
| with: | |
| title: Release Tracking | |
| # This expects you to have a script called release which does a build for your packages and calls changeset publish | |
| publish: npm run release | |
| env: | |
| GITHUB_TOKEN: ${{ steps.get-access-token.outputs.access-token }} | |
| release-candidate: | |
| name: Candidate | |
| if: ${{ github.repository == 'primer/css' && github.ref_name == 'changeset-release/main' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Publish release candidate | |
| run: | | |
| version=$(jq -r .version package.json) | |
| echo "$( jq ".version = \"$(echo $version)-rc.$(git rev-parse --short HEAD)\"" package.json )" > package.json | |
| npm publish --tag next | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Output candidate version number | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const package = require(`${process.env.GITHUB_WORKSPACE}/package.json`) | |
| github.rest.repos.createCommitStatus({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| sha: context.sha, | |
| state: 'success', | |
| context: `Published ${package.name}`, | |
| description: package.version, | |
| target_url: `https://unpkg.com/${package.name}@${package.version}/` | |
| }) | |
| - name: Upload versions json file | |
| uses: primer/.github/.github/actions/upload-versions@main | |
| release-canary: | |
| name: Canary | |
| if: ${{ github.repository == 'primer/css' && github.ref_name != 'main' && github.ref_name != 'changeset-release/main' }} | |
| uses: primer/.github/.github/workflows/[email protected] | |
| with: | |
| install: npm ci | |
| secrets: | |
| gh_token: ${{ secrets.GITHUB_TOKEN }} |