Skip to content

Added the expire-old-content.js script #24

Added the expire-old-content.js script

Added the expire-old-content.js script #24

Workflow file for this run

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