Skip to content

Enhance Home and Inbox views with navigation, chat, and team features #304

Enhance Home and Inbox views with navigation, chat, and team features

Enhance Home and Inbox views with navigation, chat, and team features #304

Workflow file for this run

name: Build Web
on:
pull_request:
branches: ["main"]
paths:
- "web/**"
- ".github/workflows/build-web.yml"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
# need to build this because it is symlinked to the web app, likely by changeset
- name: Install shared-utils dependencies
run: npm install --workspace=npm-packages/shared-utils
- name: Build shared-utils
run: npm run shared-utils-build
- name: Install web dependencies
run: npm install --workspace=web
- name: Save public env variables into .env file
run: |
echo NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL >> ./web/.env
echo NEXT_PUBLIC_CDN_URL=$NEXT_PUBLIC_CDN_URL >> ./web/.env
echo NEXT_PUBLIC_STORAGE_CONTAINER=$NEXT_PUBLIC_STORAGE_CONTAINER >> ./web/.env
env:
NEXT_PUBLIC_BACKEND_URL: ${{ vars.NEXT_PUBLIC_BACKEND_URL }}
NEXT_PUBLIC_CDN_URL: ${{ vars.NEXT_PUBLIC_CDN_URL }}
NEXT_PUBLIC_STORAGE_CONTAINER: ${{ vars.NEXT_PUBLIC_STORAGE_CONTAINER }}
- name: Build web app
run: |
npm run web-build