Skip to content

Commit

Permalink
Merge pull request #117 from side-project-pokehub/Hun
Browse files Browse the repository at this point in the history
Chore: CI/CD 워크플로우 빌드 npm에서 yarn으로 변경
  • Loading branch information
cdm1263 authored May 3, 2024
2 parents 2a48708 + 658f9a1 commit 46adf2b
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@ jobs:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run lint
- run: yarn install
- run: yarn lint

build:
name: Build
env:
NEXT_PUBLIC_API_KEY: '${{ secrets.NEXT_PUBLIC_API_KEY }}'
NEXT_PUBLIC_AUTH_DOMAIN: '${{ secrets.NEXT_PUBLIC_AUTH_DOMAIN }}'
NEXT_PUBLIC_PROJECT_ID: '${{ secrets.NEXT_PUBLIC_PROJECT_ID }}'
NEXT_PUBLIC_STORAGE_BUCKET: '${{ secrets.NEXT_PUBLIC_STORAGE_BUCKET }}'
NEXT_PUBLIC_MESSAGIN_SENDER_ID: '${{ secrets.NEXT_PUBLIC_MESSAGIN_SENDER_ID }}'
NEXT_PUBLIC_APP_ID: '${{ secrets.NEXT_PUBLIC_APP_ID }}'
NEXT_PUBLIC_MEASUREMENT_ID: '${{ secrets.NEXT_PUBLIC_MEASUREMENT_ID }}'
NEXT_PUBLIC_ADMIN_UID_1: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_1 }}'
NEXT_PUBLIC_ADMIN_UID_2: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_2 }}'
NEXT_PUBLIC_ADMIN_UID_3: '${{ secrets.NEXT_PUBLIC_ADMIN_UID_3 }}'
runs-on: ubuntu-latest
needs: lint

Expand All @@ -33,9 +44,9 @@ jobs:
node-version: '18'
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.yarn
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: CI='false' npm run build
- run: yarn install
- run: CI='false' yarn build

0 comments on commit 46adf2b

Please sign in to comment.