@signal24/dk-server-foundation 26.213.615 → 26.213.646
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/.gitlab-ci.yml +33 -15
- package/package.json +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -4,9 +4,10 @@ default:
|
|
|
4
4
|
interruptible: true
|
|
5
5
|
|
|
6
6
|
stages:
|
|
7
|
+
- test
|
|
7
8
|
- deploy
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
.test_base:
|
|
10
11
|
stage: deploy
|
|
11
12
|
services:
|
|
12
13
|
- name: mysql:8
|
|
@@ -28,22 +29,39 @@ test and deploy:
|
|
|
28
29
|
PG_PASSWORD_SECRET: secret
|
|
29
30
|
REDIS_HOST: redis
|
|
30
31
|
REDIS_PORT: 6379
|
|
31
|
-
script: |
|
|
32
|
-
set -x
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
.test_script: &test_script |
|
|
34
|
+
set -x
|
|
35
|
+
|
|
36
|
+
yarn --immutable
|
|
37
|
+
|
|
38
|
+
yarn gen:proto
|
|
39
|
+
yarn test
|
|
40
|
+
yarn testapp
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
npm run build
|
|
43
|
+
|
|
44
|
+
test:
|
|
45
|
+
extends: .test_base
|
|
46
|
+
script: *test_script
|
|
47
|
+
except:
|
|
48
|
+
- main
|
|
49
|
+
|
|
50
|
+
test and deploy:
|
|
51
|
+
extends: .test_base
|
|
52
|
+
script:
|
|
53
|
+
- *test_script
|
|
54
|
+
- |
|
|
55
|
+
apk add git
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
npm run build
|
|
57
|
+
BUILD_VERSION=$(TZ=UTC0 git show -s --format=%cd --date=format-local:'%y.%m%d.%H%M' HEAD)
|
|
58
|
+
BUILD_VERSION=$(echo -n ${BUILD_VERSION} | sed -E 's/\.0+/./g')
|
|
59
|
+
npm version ${BUILD_VERSION} --git-tag-version=false
|
|
44
60
|
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
npm config set -- //${PRIVATE_NPM_URL}/:_authToken="${PRIVATE_NPM_PUBLISHER_TOKEN}"
|
|
62
|
+
npm publish --registry https://${PRIVATE_NPM_URL}/
|
|
47
63
|
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
npm config set //registry.npmjs.org/:_authToken="${NPM_PUBLISH_TOKEN}"
|
|
65
|
+
npm publish --registry https://registry.npmjs.org/ --access public
|
|
66
|
+
only:
|
|
67
|
+
- main
|