fix(core): update

This commit is contained in:
Philipp Kunz 2023-06-26 09:28:19 +02:00
parent 0a69aa5d62
commit 45b8d67abf
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@shipzone/npmci', name: '@shipzone/npmci',
version: '4.1.13', version: '4.1.14',
description: 'node and docker in gitlab ci on steroids' description: 'node and docker in gitlab ci on steroids'
} }

View File

@ -9,7 +9,12 @@ export class NpmciEnv {
constructor(npmciRefArg: Npmci) { constructor(npmciRefArg: Npmci) {
this.npmciRef = npmciRefArg; this.npmciRef = npmciRefArg;
this.repoString = process.env.CI_REPOSITORY_URL; if (process.env.GITLAB_CI) {
this.repoString = process.env.CI_REPOSITORY_URL;
}
if (process.env.NPMCI_COMPUTED_REPOURL) {
this.repoString = process.env.NPMCI_COMPUTED_REPOURL;
}
if (!this.repoString) { if (!this.repoString) {
this.repoString = 'https://undefined:undefined@github.com/undefined/undefined.git'; this.repoString = 'https://undefined:undefined@github.com/undefined/undefined.git';
} }