Skip to content

--- (#2)

--- (#2) #3

name: 'website-fe : build'
on:
workflow_call:
inputs:
env:
required: true
type: string
pull_request:
branches: ['main']
paths:
- 'website/fe/**'
push:
branches: ['main']
paths:
- 'website/fe/**'
jobs:
build-fe:
name: fe-${{ inputs.env || 'stg' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.makefiles
config.json
Makefile
website/fe
website/Makefile
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: website/fe/package-lock.json
node-version-file: website/fe/package.json
- name: Init dependencies
run: make website-fe-init-test
- name: Build frontend
run: make website-fe-build ENV=${{ inputs.env || 'stg' }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: website-fe
path: website/fe/dist