-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.14 KB
/
application-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Application Build
on:
workflow_dispatch:
inputs:
deploy_env:
type: choice
description: '배포 환경'
options:
- production
required: true
push:
branches:
- main
paths:
- 'app/**'
- 'src/**'
env:
SERVICE_NAME: bumawiki
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22.9.0
- name: Use NextJS Cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/bumawiki/.next/cache
key: nextjs-bumawiki-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('apps/finance/**.[jt]s', 'apps/finance/**.[jt]sx') }}
restore-keys: |
nextjs-bumawiki-${{ hashFiles('**/yarn.lock') }}-
nextjs-bumawiki-
- name: Set Package Manager
run: |
npm install -g pnpm
pnpm install
- name: Check Lint
run: pnpm lint
- name: Application Build
run: pnpm build