- deploy.yml: mkdir -p 추가로 배포 디렉토리 미존재 시 실패 방지 - deploy.yml: lint 단계 추가로 빌드 전 코드 품질 검증 - useVesselDeckLayer: useEffect 내 직접 setState 호출 제거 - useAisPolling: 렌더 중 ref 업데이트를 useEffect 내부로 이동 - CLAUDE.md, .sdkmanrc, .node-version 등 팀 워크플로우 초기 구성 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Build and Deploy Wing-GIS Frontend
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Configure npm registry
|
|
working-directory: frontend/wing-gis-web
|
|
run: |
|
|
echo "registry=https://nexus.gc-si.dev/repository/npm-public/" > .npmrc
|
|
echo "//nexus.gc-si.dev/repository/npm-public/:_auth=${{ secrets.NEXUS_NPM_AUTH }}" >> .npmrc
|
|
|
|
- name: Install dependencies
|
|
working-directory: frontend/wing-gis-web
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
working-directory: frontend/wing-gis-web
|
|
run: npm run lint
|
|
|
|
- name: Build
|
|
working-directory: frontend/wing-gis-web
|
|
run: npm run build
|
|
|
|
- name: Deploy to server
|
|
run: |
|
|
mkdir -p /deploy/wing-gis
|
|
rm -rf /deploy/wing-gis/*
|
|
cp -r frontend/wing-gis-web/dist/* /deploy/wing-gis/
|
|
echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')"
|
|
ls -la /deploy/wing-gis/
|