Skip to content

feat: cn 패키지 작성 #10

feat: cn 패키지 작성

feat: cn 패키지 작성 #10

Workflow file for this run

name: Open & Merge PR
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Check cache
id: check_cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.check_cache.outputs.cache-hit == false
run: yarn install --immutable
lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Check cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Check lint
run: yarn lint
- name: Check prettier
run: yarn prettier
build:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Check cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Lerna build
run: yarn lerna run build