add ci/cd

This commit is contained in:
Sergey Krylov 2025-02-07 07:51:16 +03:00
parent fc0e8d4939
commit adb5192c51
2 changed files with 33 additions and 2 deletions

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
image: node:22.13.0
stages:
- build
build:
stage: build
before_script:
- npm install --global corepack@latest
- corepack enable
- corepack prepare pnpm@latest-10 --activate
- pnpm config set store-dir .pnpm-store
script:
- pnpm install # install dependencies
cache:
key:
files:
- pnpm-lock.yaml
paths:
- .pnpm-store
pages:
script:
- pnpm run build
- cp -r dist/* public/
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH

View File

@ -5,9 +5,10 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc -b && vite build",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint"
"lint": "eslint",
"typecheck": "vue-tsc -b"
},
"dependencies": {
"@vee-validate/zod": "^4.15.0",