Merge pull request #241 from FE9-2/design/landing-fix #401
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: workRoot CI | ||
| on: | ||
| push: | ||
| branches: | ||
| - main # main ๋ธ๋์น์ ํธ์๋ ๋ ์คํ | ||
| - dev | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| jobs: | ||
| lint-and-build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: "20" # ์ต์ Node.js 20.x.x ๋ฒ์ ์ฌ์ฉ | ||
| - name: Cache dependencies | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.npm | ||
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-node- | ||
| - name: Install dependencies | ||
| run: npm install | ||
| - name: Run linter | ||
| run: npm run lint | ||
| - name: Print environment variables | ||
| run: echo "Supabase URL: $NEXT_PUBLIC_SUPABASE_URL, Supabase Key: $NEXT_PUBLIC_SUPABASE_ANON_KEY" | ||
| env: | ||
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} | ||
| - name: Build | ||
| run: npm run build | ||