Compare commits

...

9 Commits

Author SHA1 Message Date
bdf4815145 3.0.39 2018-05-03 23:52:55 +02:00
84fdf8b139 now cleans up before publishing 2018-05-03 23:52:51 +02:00
545896821d 3.0.38 2018-05-03 21:29:38 +02:00
c7516458bd update .gitignore 2018-05-03 21:29:35 +02:00
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
4 changed files with 44 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ mirror:
- npmci git mirror
tags:
- docker
- notpriv
snyk:
stage: security
@@ -28,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
@@ -38,6 +59,7 @@ testLEGACY:
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
allow_failure: true
testLTS:
@@ -49,6 +71,7 @@ testLTS:
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
testSTABLE:
stage: test
@@ -59,17 +82,19 @@ testSTABLE:
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- notpriv
release:
stage: release
script:
- npmci node install stable
- npmci node install lts
- npmci npm prepare
- npmci npm publish
only:
- tags
tags:
- docker
- notpriv
trigger:
stage: trigger
@@ -79,6 +104,7 @@ trigger:
- tags
tags:
- docker
- notpriv
pages:
image: hosttoday/ht-docker-node:npmci
@@ -88,6 +114,7 @@ pages:
- npmci command npmpage
tags:
- docker
- notpriv
only:
- tags
artifacts:

View File

@@ -1,5 +0,0 @@
pages/
coverage/
test/
node_modules/
config.json

View File

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

View File

@@ -66,12 +66,27 @@ let publish = async () => {
npmAccessCliString = `--access=${config.npmAccessLevel}`;
}
// -> preparing
plugins.beautylog.log(`now preparing environment:`);
prepare();
await bash(`npm -v`);
// -> build it
await bash(`yarn install`);
await bash(`yarn run build`);
plugins.beautylog.success(`Nice!!! The build for the publication was successfull!`);
plugins.beautylog.log(`Lets clean up so we don't publish any packages that don't belong to us:`)
// -> clean up before we publish stuff
await bash(`rm -r .yarn`);
await bash(`rm -r node_modules`);
plugins.beautylog.success(`Cleaned up!:`);
// -> 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> => {