update npm
This commit is contained in:
parent
0f5f1f7772
commit
d4116aefdb
@ -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/
|
||||
|
@ -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!`);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user