Skip to content

Chore: CI/CD 워크플로우 빌드 npm에서 yarn으로 변경 #84

Chore: CI/CD 워크플로우 빌드 npm에서 yarn으로 변경

Chore: CI/CD 워크플로우 빌드 npm에서 yarn으로 변경 #84

Workflow file for this run

name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: yarn lint
build:
name: Build
env:
NEXT_PUBLIC_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: CI='false' yarn build