Date only frontend #674
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: CI - Pull Requests - React PWA | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'src/caretogether-pwa/**' | |
- '.github/workflows/ci-pr-react.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repo | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
# Build React frontend | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
cache-dependency-path: src/caretogether-pwa | |
- name: Install NPM packages | |
run: npm ci | |
working-directory: src/caretogether-pwa | |
- name: Build React app | |
run: npm run build | |
working-directory: src/caretogether-pwa | |
- name: List build outputs | |
run: ls -R dist | |
working-directory: src/caretogether-pwa |