Skip to content

chore(FE): 프론트엔드 CI/CD 구축 #2

chore(FE): 프론트엔드 CI/CD 구축

chore(FE): 프론트엔드 CI/CD 구축 #2

Workflow file for this run

name: Frontend PR CI
on:
pull_request:
branches:
- "**"
paths:
- frontend/**
- .github/**
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install Dependencies
run: yarn install --immutable
- name: Build
run: yarn build