From aff5d6bcc0efe858ada5c564dc7ee1fbc227ddbb Mon Sep 17 00:00:00 2001 From: Himanshu Yadav Date: Tue, 9 Jul 2024 06:38:20 +0530 Subject: [PATCH] Update firebase-hosting-merge.yml --- .github/workflows/firebase-hosting-merge.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 3827842..be75fc0 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -10,9 +10,22 @@ jobs: build_and_deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - run: yarn build - - uses: FirebaseExtended/action-hosting-deploy@v0 + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: yarn install + + - name: Build Next.js application + run: yarn build + + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_E_COMMERCE_99426 }}