Skip to content

Staging

Staging #5

name: Build prod WB dashboard
on:
pull_request:
branches:
- "main"
- "staging"
paths:
- ".github/workflows/build_prod_wb-dashboard.yml"
- "webapps/world-builder-dashboard/**"
jobs:
build_prod_wb-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and main branch
uses: actions/checkout@v2
- name: Set up node.js
uses: actions/setup-node@v3
with:
node-version: "20.14.0"
- name: Build frontend
working-directory: ./webapps/world-builder-dashboard
env:
VITE_NB_JSON_RPC_URI: ${{ secrets.VITE_NB_JSON_RPC_URI }}
VITE_NB_WB_DASHBOARD_ACCESS_ID: ${{ secrets.VITE_NB_WB_DASHBOARD_ACCESS_ID }}
run: |
npm install
npm run build