diff --git a/package.json b/package.json index 4d1e95f..b849b72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "@shipzone/npmci", "version": "3.1.18", + "private": false, "description": "node and docker in gitlab ci on steroids", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -53,6 +54,5 @@ "smartanalytics": "^2.0.9", "smartsocket": "^1.1.19", "through2": "^3.0.0" - }, - "private": false + } } diff --git a/ts/mod_git/index.ts b/ts/mod_git/index.ts index c6c9cba..eb5ce3f 100644 --- a/ts/mod_git/index.ts +++ b/ts/mod_git/index.ts @@ -28,7 +28,7 @@ export let mirror = async () => { const githubToken = process.env.NPMCI_GIT_GITHUBTOKEN; const githubUser = process.env.NPMCI_GIT_GITHUBGROUP || repo.user; const githubRepo = process.env.NPMCI_GIT_GITHUB || repo.repo; - if(configObject.projectInfo.npm.packageJson.private) { + if(configObject.projectInfo.npm.packageJson.private === true) { logger.log('warn', `refusing to mirror due to private property`); return; }