chore(github): use ui/dist for all assets #19
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: Main CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build Test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ui | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Check for changes in UI directory | |
id: check_changes | |
run: | | |
if git diff --quiet HEAD^ HEAD -- ui; then | |
echo "No changes in UI directory. Skipping step." | |
echo "skip_step=true" >> $GITHUB_ENV | |
else | |
echo "Changes detected in UI directory. Proceeding with step." | |
echo "skip_step=false" >> $GITHUB_ENV | |
fi | |
- name: Install pnpm | |
if: env.skip_step == 'false' | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup node environment | |
if: env.skip_step == 'false' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "pnpm" | |
cache-dependency-path: "ui/pnpm-lock.yaml" | |
- name: Install deps | |
if: env.skip_step == 'false' | |
run: pnpm install --frozen-lockfile | |
working-directory: ui | |
- name: Try build | |
if: env.skip_step == 'false' | |
run: pnpm build | |
working-directory: ui | |
env: | |
CI: true | |