[deps]: Update react monorepo to v19 (major) #785
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 API/client files | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
paths-ignore: | |
- ".github/workflows/**" | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- ".github/workflows/**" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
node-version: "20" | |
- name: Clean install dependencies and build | |
env: | |
TEST_WEB_HOST: "${{ secrets.TEST_WEB_HOST || 'https://localhost' }}" | |
run: | | |
npm ci | |
npm run build | |
- name: Upload build as artifact | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
if: always() | |
with: | |
name: build-files | |
path: | | |
api/build | |
api/package-lock.json | |
api/package.json | |
client/build | |
client/package-lock.json | |
client/package.json | |
package-lock.json | |
package.json |