@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.
Files changed (2) hide show
  1. package/.gitlab-ci.yml +33 -15
  2. 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
- test and deploy:
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
- yarn --immutable
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
- yarn gen:proto
37
- yarn test
38
- yarn testapp
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
- BUILD_VERSION=${CI_PIPELINE_CREATED_AT:2:2}.${CI_PIPELINE_CREATED_AT:5:2}${CI_PIPELINE_CREATED_AT:8:2}.${CI_PIPELINE_CREATED_AT:11:2}${CI_PIPELINE_CREATED_AT:14:2}
41
- BUILD_VERSION=$(echo -n ${BUILD_VERSION} | sed -E 's/\.0+/./g')
42
- npm version ${BUILD_VERSION} --git-tag-version=false
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
- npm config set -- //${PRIVATE_NPM_URL}/:_authToken="${PRIVATE_NPM_PUBLISHER_TOKEN}"
46
- npm publish --registry https://${PRIVATE_NPM_URL}/
61
+ npm config set -- //${PRIVATE_NPM_URL}/:_authToken="${PRIVATE_NPM_PUBLISHER_TOKEN}"
62
+ npm publish --registry https://${PRIVATE_NPM_URL}/
47
63
 
48
- npm config set //registry.npmjs.org/:_authToken="${NPM_PUBLISH_TOKEN}"
49
- npm publish --registry https://registry.npmjs.org/ --access public
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signal24/dk-server-foundation",
3
- "version": "26.213.615",
3
+ "version": "26.213.646",
4
4
  "description": "TypeScript server foundation built on the Deepkit framework",
5
5
  "repository": {
6
6
  "type": "git",