From 6215eabc82e2447ef6d60e2947505b2cda3a4d53 Mon Sep 17 00:00:00 2001 From: NOGUEN <65299607+NOGUEN@users.noreply.github.com> Date: Sat, 16 Nov 2024 23:50:18 +0900 Subject: [PATCH] Update firebase_hosting.yml --- .github/workflows/firebase_hosting.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase_hosting.yml b/.github/workflows/firebase_hosting.yml index ced4182..6f86f80 100644 --- a/.github/workflows/firebase_hosting.yml +++ b/.github/workflows/firebase_hosting.yml @@ -10,21 +10,30 @@ jobs: runs-on: ubuntu-latest steps: + # 1. Checkout the repository - name: Checkout Repository uses: actions/checkout@v3 + # 2. Setup Node.js environment - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '20' + node-version: '20' # 필요한 Node.js 버전으로 조정 + + # 3. Install Firebase CLI globally + - name: Install Firebase CLI + run: npm install -g firebase-tools + # 4. Install project dependencies - name: Install Dependencies run: npm install + # 5. Build the project - name: Build Project run: npm run build + # 6. Deploy to Firebase Hosting - name: Deploy to Firebase Hosting - run: npx firebase deploy --only hosting --project hiarchomepage + run: firebase deploy --only hosting --project hiarchomepage env: FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}