From cc0911d4da7399ad4e913f0dd1730d7ec19a893a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Thu, 4 Apr 2024 21:19:53 +0200 Subject: [PATCH] Run firebase preview deploy with newer node version --- .../workflows/firebase-hosting-pull-request.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 0adeb66..c3269d3 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -4,7 +4,7 @@ name: Pull request build and deploy 'on': pull_request jobs: - build_and_preview: + build: if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' runs-on: ubuntu-latest steps: @@ -31,6 +31,19 @@ jobs: env: REACT_APP_VERSION: ${{ github.sha }} REACT_APP_ENTUR_CLIENT_NAME: entur-shamash2023 + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: build + path: | + build + preview: + if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Download all workflow run artifacts + uses: actions/download-artifact@v3 - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}'