-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 992 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (31 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
packages: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
# Installs @mind-studio/* from GitHub Packages via the committed .npmrc.
# GITHUB_TOKEN can read public packages in the same MIND-Studio org; if a
# cross-repo read is ever refused, set a NODE_AUTH_TOKEN secret to an org
# PAT with read:packages.
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}
# Lint + format gate (Biome). Fails on errors; warnings are the
# documented legacy baseline tracked in biome.json.
- run: npx biome ci .
- run: npx tsc --noEmit
- run: npm run test
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}