From 9c66d88dc00ce459855443cbe5ec87669a620c25 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 11 Oct 2022 13:40:25 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/manager.nodejs/index.ts | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 327178a..87074cf 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@shipzone/npmci', - version: '4.0.4', + version: '4.0.5', description: 'node and docker in gitlab ci on steroids' } diff --git a/ts/manager.nodejs/index.ts b/ts/manager.nodejs/index.ts index 6e700fb..917df48 100644 --- a/ts/manager.nodejs/index.ts +++ b/ts/manager.nodejs/index.ts @@ -44,11 +44,11 @@ export class NpmciNodeJsManager { logger.log('info', `now installing node version ${versionArg}`); let version: string; if (versionArg === 'stable') { - version = '16'; + version = '18'; } else if (versionArg === 'lts') { - version = '14'; + version = '16'; } else if (versionArg === 'legacy') { - version = '12'; + version = '14'; } else { version = versionArg; } @@ -59,9 +59,10 @@ export class NpmciNodeJsManager { logger.log('warn', 'Nvm not in path so staying at installed node version!'); } logger.log('info', 'now installing latest npm version'); - await bash('npm install -g npm'); + await bash('npm install -g npm && pnpm install -g pnpm'); await bash('node -v'); await bash('npm -v'); + await bash('pnpm -v'); // lets look for further config const config = await this.npmciRef.npmciConfig.getConfig();