From d4116aefdb8e7341686be0bd41632f85f2a3b2dc Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 3 May 2018 20:40:26 +0200 Subject: [PATCH] update npm --- .gitlab-ci.yml | 2 +- ts/mod_npm/index.ts | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 694f93e..c3b1b23 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,7 +76,7 @@ testLTS: testSTABLE: stage: test script: - - npmci node install stable + - npmci node install lts - npmci npm install - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index 7763ad3..4585913 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -66,13 +66,18 @@ 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`); - await bash(`rm -r node_modules`); // -> publish it - plugins.beautylog.log(`now invking npm to publish the package!`); + plugins.beautylog.log(`now invoking npm to publish the package!`); await bash(`npm publish ${npmAccessCliString}`); plugins.beautylog.success(`Package was successfully published!`); };