Added the expire-old-content.js script #28
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Determine Workflow Branch | |
run: echo "TARGET_BRANCH=${{ github.event.pull_request.head.ref || github.ref_name }}" >> $GITHUB_ENV | |
- name: Switch to Workflow Branch | |
run: git checkout ${{ env.TARGET_BRANCH }} | |
- 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 extra artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: webpify-results | |
path: ./webp-conversion-results.json |