Vite config for prod only minification #2766
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: Pull Request Check | |
on: | |
pull_request: | |
branches: | |
- main | |
- alpha | |
- BUGFIX | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- run: npm ci | |
# Run with the target branch as the base. | |
- name: Lint | |
run: npx nx affected --target=lint --base=origin/${{ github.base_ref }} | |
- name: Build | |
run: | | |
npx nx affected --target=build --base=origin/${{ github.base_ref }} | |
npx nx affected --target=post --base=origin/${{ github.base_ref }} | |
- name: Test | |
run: npm run test |