ci: sync when push main #72
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 Web App | |
on: | |
push: | |
paths: | |
- "web/apps/web/**" | |
- "web/packages/**" | |
- ".github/**" | |
pull_request: | |
paths: | |
- "web/apps/web/**" | |
- "web/packages/**" | |
- ".github/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
cache-dependency-path: "web/pnpm-lock.yaml" | |
- working-directory: "./web" | |
run: pnpm install | |
- working-directory: "./web" | |
run: pnpm turbo run build --filter=web | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: web-build | |
path: web/apps/web/dist |