Merge branch 'docs/mdn-contribute' #784
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 }} |