From d5de6ab5615a8de11b7ddfa53c292a8baab34330 Mon Sep 17 00:00:00 2001 From: Akshat42 Date: Tue, 22 Oct 2024 00:09:15 +0530 Subject: [PATCH] update firebase workflow file --- .github/workflows/firebase-hosting-merge.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 4a838be..5f2494a 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -9,9 +9,22 @@ name: Deploy to Firebase Hosting on merge jobs: build_and_deploy: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18] steps: - - uses: actions/checkout@v2 - - run: npm ci && npm run build + - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'