Commit 587e1793 authored by 邓晓峰's avatar 邓晓峰

feat: ci add lint checkout workflow

parent 30374c50
variables:
TARGET_REPO: "F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
TARGET_REPO: "F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/"
before_script:
- chcp 65001
......@@ -7,9 +7,10 @@ before_script:
stages:
- install
- lint
- package
- push
install:
stage: install
script:
......@@ -25,12 +26,22 @@ install:
- $NPM_INSTALL == "true"
when: manual
lint:
stage: lint
script:
- npm run lint
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
only:
- master
when: manual
package:
stage: package
script:
- echo "${CI_PROJECT_DIR}"
- npm run build -- --releasepath=../CivWebPublish2021
- npm run build --releasepath=../CivWebPublish2021
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
......@@ -39,7 +50,7 @@ package:
- master
when: manual
push:
variables:
GIT_STRATEGY: none
......@@ -54,7 +65,7 @@ push:
IF ((${LASTEXITCODE} -le 8)) {cmd /c "exit /b 0"}'
- 'git add . ; git reset HEAD Web.config CityInterface/Web.config CityWebFW/Web.config ; git commit -m "auto package CivWeb5."'
#- 'git push origin map'
only:
- master
when: manual
......@@ -12,7 +12,7 @@ module.exports = {
'styled-components',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
['import', { libraryName: 'antd', style: true }]
['import', { libraryName: 'antd', style: true }],
],
env: {
production: {
......
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