diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..05a85b6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# GitLab CI — dognation 프론트 (Vue3 + TS + Vite / Capacitor) +# dev 브랜치 푸시에서만 실행. build 스크립트가 vue-tsc 타입체크 + vite 빌드를 함께 수행. +image: node:22 + +variables: + npm_config_cache: "$CI_PROJECT_DIR/.npm" + +cache: + key: "$CI_COMMIT_REF_SLUG" + paths: + - .npm/ + +stages: + - build + +build: + stage: build + rules: + - if: '$CI_COMMIT_BRANCH == "dev"' + script: + - npm ci + - npm run build # vue-tsc --noEmit && vite build + artifacts: + paths: + - dist/ + expire_in: 1 week \ No newline at end of file