From 86bc5e1c131f024ad027b300c98211dbe693b7b2 Mon Sep 17 00:00:00 2001 From: Aswanth Vc Date: Sun, 3 Dec 2023 03:33:12 +0530 Subject: [PATCH] firebase deploy workflow changes --- .github/workflows/firebase-hosting-merge.yml | 4 ++-- .github/workflows/firebase-hosting-pull-request.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index e0e85a9e..73db3f35 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -5,13 +5,13 @@ name: Deploy to Firebase Hosting on merge "on": push: branches: - - gh-pages + - main jobs: build_and_deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: npm run build + - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 1ab3d8dc..0c43114c 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: npm run build + - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}"