-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.15 KB
/
code.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: code
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
pull-requests: write
jobs:
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: 🌱 Install pnpm
uses: ./.github/actions/pnpm-install
- name: 🏁 Lint
run: pnpm lint
build-export:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: 🌱 Install pnpm
uses: ./.github/actions/pnpm-install
- name: 🏗 Build and Export
uses: ./.github/actions/nextjs-build-export
preview:
runs-on: macos-latest
needs: build-export
steps:
- uses: actions/checkout@v4
# 캐싱 된 값을 사용
- name: 🌱 Install pnpm
uses: ./.github/actions/pnpm-install
- name: 🏗 Build and Export
uses: ./.github/actions/nextjs-build-export
- name: 🌈 Netlify preview
uses: ./.github/actions/netlify-preview
with:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_API_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }}
HEAD_COMMIT: ${{ github.event.pull_request.head.sha }}