Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e490c6f730 | |||
| bdf4815145 | |||
| 84fdf8b139 | |||
| 545896821d | |||
| c7516458bd |
@@ -76,7 +76,7 @@ testLTS:
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
@@ -87,7 +87,7 @@ testSTABLE:
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci node install stable
|
||||
- npmci node install lts
|
||||
- npmci npm prepare
|
||||
- npmci npm publish
|
||||
only:
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
pages/
|
||||
coverage/
|
||||
test/
|
||||
node_modules/
|
||||
config.json
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@shipzone/npmci",
|
||||
"version": "3.0.37",
|
||||
"version": "3.0.40",
|
||||
"description": "node and docker in gitlab ci on steroids",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
||||
@@ -67,15 +67,22 @@ let publish = async () => {
|
||||
}
|
||||
|
||||
// -> preparing
|
||||
plugins.beautylog.log(`noe preparing environment:`);
|
||||
plugins.beautylog.log(`now preparing environment:`);
|
||||
prepare();
|
||||
await bash(`npm install -g npm`);
|
||||
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}`);
|
||||
|
||||
Reference in New Issue
Block a user