mirror of
https://github.com/hanzoai/o11y-design-tokens.git
synced 2026-11-03 02:07:51 +00:00
The node image already ships a pnpm shim, so `npm install -g pnpm` aborts with EEXIST before the install ever starts. corepack enables the one that is there.
29 lines
767 B
YAML
29 lines
767 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [hanzo-build-linux-amd64]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
# pnpm is already on the node toolchain image; corepack pins it to the
|
|
# version the lockfile was written with.
|
|
- run: corepack enable pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm lint
|
|
# The tokens are generated from JSON, so regenerate before building:
|
|
# a token added to the source and not to the generated output fails here.
|
|
- run: pnpm generate-tokens
|
|
- run: pnpm build
|