Set up CI and automated publishing #1
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
merge_group: | |
concurrency: | |
# Ensure that we only run one concurrent job for Pull Requests. This ensures | |
# that someone can't kill our throughput by pushing a bunch of commits to a | |
# single branch in rapid succession. | |
# | |
# However, for master builds, we allow maximum concurrency. This is achieved | |
# because `github.head_ref` isn't defined there, and `github.run_id` is | |
# globally unique in this repo. | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- run: yarn install --immutable --inline-builds | |
- run: yarn build |