name: CI on: push: branches: - main pull_request: {} permissions: read-all env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} concurrency: # Group concurrency on workflow, then: # - Is merge run? Group on branch name (`refs/heads/main`) # - Is pull request? Group on pull request branch name, for example `feat/add-awesome-feature` group: >- ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref || github.head_ref }} # Run merge workflows in sequence to prevent parallel deployments and releases # Cancel stale pull request runs in progress for the same branch cancel-in-progress: ${{ github.event_name != 'push' }} jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup uses: ./.github/actions/setup - name: Build run: pnpm build lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup uses: ./.github/actions/setup - name: Run linter run: pnpm lint