-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
43 lines (38 loc) · 1.26 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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
# Superseded runs are pointless: every push rebuilds the whole dep tree.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
package-manager-cache: false
node-version: '24'
- run: npm i -g --force corepack && corepack enable
- run: pnpm install --frozen-lockfile
# Lint and unit tests need no generated types, so they run before `prepare`
# and fail fast.
- run: pnpm lint
- run: pnpm test
- run: pnpm dev:prepare
- run: pnpm typecheck
# Builds the playground, which exercises the layer end to end: content
# pages, landing, OG images, and the generated ISR route rules.
- run: pnpm build
# Continuous preview releases via pkg.pr.new: every commit gets an installable
# tarball (https://pkg.pr.new/comarkdown/comark-docs@<sha>), so downstream sites
# can test the layer before a release. Requires the pkg.pr.new GitHub App.
- run: pnpx pkg-pr-new publish --compact --no-template --pnpm