chore(deps): bump axios and wait-on in /website #194
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build website | |
on: | |
pull_request: | |
branches: [master] | |
paths: | |
- "website/**" | |
- "firebase.json" | |
- ".github/workflows/*-website.yml" | |
push: | |
branches: [master] | |
paths: | |
- "website/**" | |
- "firebase.json" | |
- ".github/workflows/*-website.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PR_INFO_FILE: ".PR_INFO" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Build | |
run: | | |
cd website | |
npm install | |
npm run build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: website | |
path: website/build/ | |
retention-days: 1 | |
- if: github.event_name == 'pull_request' | |
name: Build pr info | |
run: | | |
echo "${{ github.event.number }}" > $PR_INFO_FILE | |
- if: github.event_name == 'pull_request' | |
name: Upload pr info | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pr-info | |
path: "${{ env.PR_INFO_FILE }}" | |
retention-days: 1 |