@dazhicheng/common 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/.gitlab-ci.yml +54 -0
  2. package/package.json +1 -1
package/.gitlab-ci.yml CHANGED
@@ -13,6 +13,7 @@ variables:
13
13
  script:
14
14
  - npm install -g pnpm
15
15
  - pnpm install
16
+ - pnpm up:dzc
16
17
  - pnpm "build:${NODE_ENV}"
17
18
  artifacts:
18
19
  paths:
@@ -44,4 +45,57 @@ MR 构建验证:
44
45
  - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
45
46
 
46
47
  # 项目级 deploy jobs 注入点 ------------------------------------------------
48
+ 构建_dev:
49
+ <<: *build_template
50
+ variables:
51
+ NODE_ENV: dev
52
+ rules:
53
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
54
+ - if: $CI_COMMIT_BRANCH == "develop"
55
+
56
+ 构建_test:
57
+ <<: *build_template
58
+ variables:
59
+ NODE_ENV: test
60
+ only: [test]
61
+
62
+ 开发环境发版:
63
+ <<: *deploy_template
64
+ needs: [构建_dev]
65
+ tags: [develop]
66
+ resource_group: deploy-develop
67
+ variables:
68
+ NODE_ENV: dev
69
+ <<<开发环境发版>>>
70
+ only: [develop]
71
+
72
+ 开发环境发版_107:
73
+ <<: *deploy_template
74
+ needs: [构建_dev]
75
+ tags: [develop_107]
76
+ resource_group: deploy-develop_107
77
+ variables:
78
+ NODE_ENV: dev
79
+ <<<开发环境发版_107>>>
80
+ only: [develop]
81
+
82
+ 测试环境发版:
83
+ <<: *deploy_template
84
+ needs: [构建_test]
85
+ tags: [test]
86
+ resource_group: deploy-test
87
+ variables:
88
+ NODE_ENV: test
89
+ <<<测试环境发版>>>
90
+ only: [test]
91
+
92
+ 测试环境发版_107:
93
+ <<: *deploy_template
94
+ needs: [构建_test]
95
+ tags: [test_107]
96
+ resource_group: deploy-test_107
97
+ variables:
98
+ NODE_ENV: test
99
+ <<<测试环境发版_107>>>
100
+ only: [test]
47
101
  <<<deploy_jobs>>>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/common",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "共享配置文件",
5
5
  "type": "module",
6
6
  "types": "./src/types/index.d.ts",