Commit 4ba92227 authored by 叶飞's avatar 叶飞

feat: gitlab ci

parent 72d1c402
Pipeline #18349 failed with stages
in 11 seconds
......@@ -2,7 +2,7 @@ variables:
DEPLOY_PATH: 'F:/WisdomComponents'
stages:
- install
- init
- build
- release
......@@ -11,26 +11,25 @@ before_script:
- echo 查看运行环境
- whoami
- node -v
- dir
install:
stage: install
init:
stage: init
script:
- cd /d "${DEPLOY_PATH}/src/wisdom-components"
- dir
- git pull
- echo 开始安装依赖...
- nrm ls
- npm install
- lerna bootstrap
- echo 安装完成
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
build:
stage: build
script:
- cd /d "${DEPLOY_PATH}/src/wisdom-components"
- echo 开始打包...
- npm run build
- npm run deploy
- echo 打包完成
cache:
key: ${CI_COMMIT_REF_SLUG}
......@@ -40,6 +39,7 @@ build:
release:
stage: release
script:
- cd /d "${DEPLOY_PATH}/src/wisdom-components"
- echo 开始拷贝发布包...
- robocopy dist ${DEPLOY_PATH}
- robocopy dist "${DEPLOY_PATH}/dist"
- echo 发布完成
......@@ -14,6 +14,7 @@
"release": "node ./scripts/release.js",
"size": "npm run build && size-limit",
"start": "dumi dev",
"site": "dumi build",
"tsc:duplicate": "tsc -p ./tests/tsconfig.duplicate.json",
"sync:tnpm": "node -e 'require(\"./scripts/syncTNPM\")()'",
"test": "umi-test",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment