Compare commits

..

13 Commits

Author SHA1 Message Date
c2f92e63c5 3.0.37 2018-05-03 20:40:29 +02:00
d4116aefdb update npm 2018-05-03 20:40:26 +02:00
0f5f1f7772 3.0.36 2018-05-03 20:08:00 +02:00
7722187ea5 update ci 2018-05-03 20:07:49 +02:00
734a21c925 update publishing process 2018-05-03 19:56:38 +02:00
bb36beb682 3.0.35 2018-05-03 19:48:03 +02:00
3417ca83ed 3.0.34 2018-05-03 19:12:22 +02:00
dea6264c34 update ci 2018-05-03 19:12:17 +02:00
b6ca597ca5 3.0.33 2018-05-03 19:05:12 +02:00
1539d49426 update publish process 2018-05-03 19:05:09 +02:00
51fbc906a0 3.0.32 2018-04-29 17:40:18 +02:00
0e3732cade update 2018-04-29 17:40:14 +02:00
4f968472c8 update 2018-04-29 17:37:59 +02:00
4 changed files with 39 additions and 15 deletions

View File

@@ -6,10 +6,6 @@ cache:
- .yarn/
key: "$CI_BUILD_STAGE"
before_script:
- yarn global add npmci@3.0.29
- npmci docker login
stages:
- security
- test
@@ -23,6 +19,7 @@ mirror:
- npmci git mirror
tags:
- docker
- notpriv
snyk:
stage: security
@@ -32,6 +29,26 @@ snyk:
- npmci command snyk test
tags:
- docker
- notpriv
codequality:
stage: security
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
tags:
- docker
- priv
testLEGACY:
stage: test
@@ -42,6 +59,7 @@ testLEGACY:
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
allow_failure: true
testLTS:
@@ -53,28 +71,30 @@ testLTS:
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
testSTABLE:
stage: test
script:
- npmci node install stable
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
release:
stage: release
script:
- npmci node install stable
- npmci npm prepare
- npmci command npm install
- npmci command npmts
- npmci npm publish
only:
- tags
tags:
- docker
- notpriv
trigger:
stage: trigger
@@ -84,6 +104,7 @@ trigger:
- tags
tags:
- docker
- notpriv
pages:
image: hosttoday/ht-docker-node:npmci
@@ -93,6 +114,7 @@ pages:
- npmci command npmpage
tags:
- docker
- notpriv
only:
- tags
artifacts:

View File

@@ -5,11 +5,8 @@
"cli": true
},
"npmci": {
"globalNpmTools": [
"npmts"
],
"npmGlobalTools": [
"npmts"
"@gitzone/npmts"
],
"npmAccessLevel": "public"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@shipzone/npmci",
"version": "3.0.31",
"version": "3.0.37",
"description": "node and docker in gitlab ci on steroids",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@@ -66,15 +66,20 @@ let publish = async () => {
npmAccessCliString = `--access=${config.npmAccessLevel}`;
}
// -> preparing
plugins.beautylog.log(`noe preparing environment:`);
prepare();
await bash(`npm install -g npm`);
await bash(`npm -v`);
// -> build it
await bash(`yarn install`);
await bash(`yarn run build`);
// -> make sure npm is authenticated
prepare();
// -> publish it
plugins.beautylog.log(`now invoking npm to publish the package!`);
await bash(`npm publish ${npmAccessCliString}`);
plugins.beautylog.success(`Package was successfully published!`);
};
let install = async (): Promise<void> => {