fix(core): update

This commit is contained in:
Philipp Kunz 2022-10-11 13:40:25 +02:00
parent fb4c84e1de
commit 9c66d88dc0
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -44,11 +44,11 @@ export class NpmciNodeJsManager {
logger.log('info', `now installing node version ${versionArg}`); logger.log('info', `now installing node version ${versionArg}`);
let version: string; let version: string;
if (versionArg === 'stable') { if (versionArg === 'stable') {
version = '16'; version = '18';
} else if (versionArg === 'lts') { } else if (versionArg === 'lts') {
version = '14'; version = '16';
} else if (versionArg === 'legacy') { } else if (versionArg === 'legacy') {
version = '12'; version = '14';
} else { } else {
version = versionArg; version = versionArg;
} }
@ -59,9 +59,10 @@ export class NpmciNodeJsManager {
logger.log('warn', 'Nvm not in path so staying at installed node version!'); logger.log('warn', 'Nvm not in path so staying at installed node version!');
} }
logger.log('info', 'now installing latest npm 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('node -v');
await bash('npm -v'); await bash('npm -v');
await bash('pnpm -v');
// lets look for further config // lets look for further config
const config = await this.npmciRef.npmciConfig.getConfig(); const config = await this.npmciRef.npmciConfig.getConfig();