Skip to content

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

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

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

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.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: yarn lint
build:
name: Build
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.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: CI='false' yarn build