🚑 Fix: lighthouse 워크플로우 버그 해결 #29
Workflow file for this run
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: Run Lighthouse CI and Comment on PR | |
on: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
run-lighthouse-and-comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
- name: Install packages | |
run: | | |
yarn install | |
- name: Build | |
run: | | |
yarn build | |
- name: Run Lighthouse CI | |
run: | | |
npm install -g @lhci/[email protected] | |
lhci autorun | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |