-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (30 loc) · 969 Bytes
/
build.yml
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-ignore: main
jobs:
setup:
uses: ./.github/workflows/_setup.yml
build:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/.yarn/cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-nodemodules
- uses: actions/cache@v4
id: build-cache
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-next-build-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-next-build-
- name: Run build
if: steps.build-cache.outputs.cache-hit != 'true'
run: yarn turbo build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true