Merge pull request #37 from ShipFriend0516/refactor/toc #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ci: | |
name: Continuous Integration | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: false | |
- name: Install dependencies | |
run: pnpm install | |
# TypeScript 타입 체크 | |
- name: Type check | |
run: pnpm type-check | |
# ESLint 검사 | |
- name: Lint check | |
run: pnpm lint | |
# 빌드 테스트 | |
- name: Build test | |
run: pnpm build | |
env: | |
DB_URI: ${{ secrets.DB_URI }} | |
# cd: | |
# name: Continuous Deployment | |
# needs: ci | |
# runs-on: ubuntu-latest | |
# if: github.event_name == 'push' && github.ref == 'refs/heads/dev' | |
# | |
# steps: | |
# - name: Deploy to Vercel | |
# uses: amondnet/vercel-action@v25 | |
# with: | |
# vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
# vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
# vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
# working-directory: ./ | |
# vercel-args: '--prod' |