docs: 우아콘 이그나이트 추가 #824
This file contains 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: code | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
pull-requests: write | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 🌱 Install pnpm | |
uses: ./.github/actions/pnpm-install | |
- name: 🏁 Lint | |
run: pnpm lint | |
build-export: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 🌱 Install pnpm | |
uses: ./.github/actions/pnpm-install | |
- name: 🏗 Build and Export | |
uses: ./.github/actions/nextjs-build-export | |
preview: | |
runs-on: macos-latest | |
needs: build-export | |
steps: | |
- uses: actions/checkout@v4 | |
# 캐싱 된 값을 사용 | |
- name: 🌱 Install pnpm | |
uses: ./.github/actions/pnpm-install | |
- name: 🏗 Build and Export | |
uses: ./.github/actions/nextjs-build-export | |
- name: 🌈 Netlify preview | |
uses: ./.github/actions/netlify-preview | |
with: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_API_TOKEN: ${{ secrets.NETLIFY_API_TOKEN }} | |
HEAD_COMMIT: ${{ github.event.pull_request.head.sha }} |