Repository navigation
release: version packages #94
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: CI | |
| on: | |
| push: | |
| branches: [master, dev] | |
| pull_request: | |
| branches: [master, dev] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| # v5/v6 majors run on the node24 action runtime; the v4 majors ran on | |
| # node20, which GitHub now flags with a deprecation annotation. | |
| - uses: actions/checkout@v5 | |
| # Reads the pnpm version from package.json "packageManager". | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install (frozen lockfile) | |
| run: pnpm install --frozen-lockfile | |
| # dist/ is gitignored and @understudy/protocol resolves via dist (the | |
| # npm-publish-correct layout), so the workspace libs must be built | |
| # before anything that imports them typechecks or runs. Topological: | |
| # protocol builds before connector. | |
| - name: Build packages | |
| run: pnpm --filter "./packages/*" build | |
| - name: Typecheck | |
| run: pnpm -r typecheck | |
| - name: Test | |
| run: pnpm -r test | |
| - name: Build | |
| run: pnpm -r build |