-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
58 lines (48 loc) 路 1.21 KB
/
Copy pathsite.yml
File metadata and controls
58 lines (48 loc) 路 1.21 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
54
55
56
57
58
name: Site
on:
pull_request:
paths:
- 'apps/site/**'
- '.github/workflows/site.yml'
push:
branches:
- master
paths:
- 'apps/site/**'
- '.github/workflows/site.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 2
HUSKY: 0
NODE_VERSION: 22
defaults:
run:
working-directory: apps/site
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Yarn cache
uses: actions/cache@v4
env:
cache-name: yarn-cache-site
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('apps/site/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: yarn install --frozen-lockfile
# next build typechecks too, and it is the step that writes the
# gitignored next-env.d.ts a standalone tsc run needs
- name: Build
run: yarn build