@xfe-repo/web-app 1.3.0 → 1.3.1

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.
package/deploy/.drone.yml CHANGED
@@ -79,17 +79,17 @@ steps:
79
79
  - name: deploy-to-test
80
80
  image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/deploy-helm:latest
81
81
  commands:
82
+ - export KUBECONFIG=$PWD/kube_config
82
83
  - cp deploy/helm/values.yaml deploy/helm/values.test.yaml
83
84
  - sed -i "s/<<ENV_TYPE>>/test/g" deploy/helm/values.test.yaml
84
85
  - sed -i "s/<<APP_SUFFIX>>/-$HOST_PREFIX/g" deploy/helm/values.test.yaml
85
86
  - sed -i "s/<<HOST_PREFIX>>/$HOST_PREFIX/g" deploy/helm/values.test.yaml
86
- - sed -i "s/deployment/$appName-$HOST_PREFIX/g" deploy/helm/Chart.yaml
87
+ - appName="`echo ${DRONE_REPO//\//-}`"
88
+ - chartName="$appName-$HOST_PREFIX"
89
+ - echo "$chartName"
90
+ - sed -i "s/deployment/$chartName/g" deploy/helm/Chart.yaml
87
91
  - sed -i "s/1.0.0/0.0.0-$CI_COMMIT_SHA/g" deploy/helm/Chart.yaml
88
- - helm upgrade --install "$appName-$HOST_PREFIX" deploy/helm/ \
89
- -f deploy/helm/values.test.yaml \
90
- --namespace deployment-test \
91
- --create-namespace \
92
- --history-max 5 \
92
+ - helm upgrade --install "$chartName" deploy/helm -f deploy/helm/values.test.yaml --namespace deployment-test --create-namespace --history-max 5
93
93
  when:
94
94
  event:
95
95
  - custom
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-app",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "bin": {
5
5
  "xfe-web": "./bin/index.js"
6
6
  },
@@ -78,8 +78,8 @@
78
78
  "webpack-manifest-plugin": "^4.0.2",
79
79
  "workbox-webpack-plugin": "^7.0.0",
80
80
  "yaml": "^2.3.4",
81
- "@xfe-repo/eslint-config": "0.0.5",
82
- "@xfe-repo/typescript-config": "0.0.6"
81
+ "@xfe-repo/typescript-config": "0.0.6",
82
+ "@xfe-repo/eslint-config": "0.0.5"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "18.2.0",