Added the expire-old-content.js script #39
Workflow file for this run
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: React Build Check | |
permissions: | |
contents: write | |
actions: write | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.ACTIONS_TOKEN }} | |
- name: Determine Workflow Branch | |
run: echo "TARGET_BRANCH=${{ github.event.pull_request.head.ref || github.ref_name }}" >> $GITHUB_ENV | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
run: npm i | |
- name: Build React app | |
run: CI=true npm run build | |
- name: Upload post-build repo state | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Repo after Build" | |
path: ./ | |
- name: Upload Pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./build | |
- name: Upload extra artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: webpify-results | |
path: ./webp-conversion-results.json |