Skip to content

ci: bump the github-actions group with 4 updates #142

ci: bump the github-actions group with 4 updates

ci: bump the github-actions group with 4 updates #142

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup
- run: pnpm run lint
test:
runs-on: ubuntu-latest
name: Test
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/setup
- run: pnpm run build
- run: pnpm run build-fixtures
- run: pnpm run test
publish:
needs: [lint, test]
if: contains('refs/heads/main OR refs/heads/next', github.ref)
runs-on: ubuntu-latest
name: Publish
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
strategy:
matrix:
node: [20]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- run: pnpm run build
- run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}