(#236) Migrate create-react-app to Vite #76
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 UI ReactJs | |
on: | |
push: | |
paths: | |
- "src/UIs/reactjs/**" | |
pull_request: | |
paths: | |
- "src/UIs/reactjs/**" | |
env: | |
WORKING_DIRECTORY: ./src/UIs/reactjs/ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
- run: npm install | |
working-directory: ./src/UIs/reactjs/ | |
- run: npm audit --audit-level=critical | |
working-directory: ./src/UIs/reactjs/ | |
- run: CI=false npm run build # Treating warnings as errors because process.env.CI = true. | |
working-directory: ./src/UIs/reactjs/ | |
- name: Upload ReactJs | |
uses: actions/[email protected] | |
with: | |
name: ReactJs | |
path: ./src/UIs/reactjs/dist |