Skip to content

Commit

Permalink
Run firebase preview deploy with newer node version
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Apr 4, 2024
1 parent 091e928 commit cc0911d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}'
Expand Down

0 comments on commit cc0911d

Please sign in to comment.