-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (48 loc) · 1.72 KB
/
Copy pathci.yml
File metadata and controls
53 lines (48 loc) · 1.72 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: ci
on: [push, workflow_dispatch]
env:
NODE_OPTIONS: --max-old-space-size=5000 --max-semi-space-size=64
jobs:
check:
runs-on: ubuntu-26.04-arm
steps:
- { uses: actions/checkout@v7, with: { persist-credentials: false } }
# Node comes from the runner's toolcache (no download); pnpm/setup installs only pnpm
- { uses: actions/setup-node@v7, with: { node-version: '24' } }
- { uses: pnpm/setup@v2, with: { cache: true } }
- run: pnpm build
- run: pnpm lint:ci
# - run: pnpm typecheck # covered by oxlint typechecking
- run: pnpm test
release:
runs-on: ubuntu-26.04-arm
if: github.ref_name == 'main'
permissions:
id-token: write # Required for OIDC
contents: write
issues: write
pull-requests: write
steps:
- { uses: actions/checkout@v7, with: { persist-credentials: false } }
- { uses: actions/setup-node@v7, with: { node-version: '24' } }
- { uses: pnpm/setup@v2, with: { cache: true } }
- run: pnpm build
- run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs:
runs-on: ubuntu-26.04-arm
if: github.ref_name == 'main'
steps:
- { uses: actions/checkout@v7, with: { persist-credentials: false } }
- { uses: actions/setup-node@v7, with: { node-version: '24' } }
- { uses: pnpm/setup@v2, with: { cache: true } }
- run: pnpm docs:build
- name: publish docs to github pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist
force_orphan: true
commit_message: 'deploy docs [skip ci]'
# publish_branch: gh-pages