@soft-artel/ci 2.3.85 → 2.3.87

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 CHANGED
@@ -6,7 +6,7 @@ public_sa-ci:
6
6
  only:
7
7
  - release
8
8
  script:
9
- - 'npm publish'
10
- - 'npm update -g sa-ci'
9
+ - 'sh ./_publish.sh'
10
+ - 'npm update -g @soft-artel/ci'
11
11
  tags:
12
12
  - ansible
package/_publish.sh CHANGED
@@ -1,25 +1,11 @@
1
1
  #!/bin/bash
2
- echo "Current: v$(cat ./package.json | grep version | grep -o '[0-9\.]\+')"
2
+ echo "Publishing v$(cat ./package.json | grep version | grep -o '[0-9\.]\+')"
3
3
 
4
- rm -rf _publish
5
- node upd_pkg.js
6
-
7
- tsc -p tsconfig.json
8
- cp package.json _publish/
4
+ rm -rf _dist
5
+ npm i --production
6
+ npm run build
9
7
 
10
8
  echo "Build succseed!"
11
9
 
12
- cd _publish
13
- PUBLISH_VERSION=$(cat ./package.json | grep version | grep -o '[0-9\.]\+')
14
- echo "New version: v${PUBLISH_VERSION}"
15
-
16
- npm version $PUBLISH_VERSION
10
+ cd _dist
17
11
  npm publish
18
- echo "v${PUBLISH_VERSION} published!"
19
-
20
- cd ..
21
- git commit -a -m "v${PUBLISH_VERSION} published!"
22
- git push
23
- git push origin HEAD:master
24
-
25
- echo "\n\n\nv${PUBLISH_VERSION} published succseed!"
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "http://gitlab.soft-artel.com/soft-artel/ci.git"
8
8
  },
9
9
  "name": "@soft-artel/ci",
10
- "version": "2.3.85",
10
+ "version": "2.3.87",
11
11
  "main": "sa-ci-k8s.js",
12
12
  "bin": {
13
13
  "sa-ci-k8s-build": "./commands/k8s-build.js",
@@ -21,7 +21,7 @@
21
21
  "lint+fix": "eslint --cache \"./**/*.ts\" --fix",
22
22
  "sa-commit": "sa-commit -a -p",
23
23
  "build": "rm -rf _dist && tsc -p tsconfig.json && cp package.json _dist/",
24
- "pub": "ts-node ./src/commands/incrementBuild && npm run build && cd _dist && npm publish && sa-commit -a -p"
24
+ "pub": "ts-node ./src/commands/incrementBuild && sh _publish.sh && sa-commit -a -p"
25
25
  },
26
26
  "dependencies": {
27
27
  "axios": "1.7.2",
@@ -42,4 +42,4 @@
42
42
  "ts-node": "8.8.2",
43
43
  "typescript": "^5.4.5"
44
44
  }
45
- }
45
+ }