Compare commits

...

12 Commits

Author SHA1 Message Date
373a838a6a 4.0.9 2022-10-11 14:08:00 +02:00
960e3f4675 fix(core): update 2022-10-11 14:07:59 +02:00
09bf676b58 4.0.8 2022-10-11 13:59:40 +02:00
76ba8e2ab9 fix(core): update 2022-10-11 13:59:39 +02:00
aaaaca2d19 4.0.7 2022-10-11 13:59:16 +02:00
71b27eda17 fix(core): update 2022-10-11 13:59:15 +02:00
2d00882fd7 4.0.6 2022-10-11 13:58:48 +02:00
ba5e69041f fix(core): update 2022-10-11 13:58:48 +02:00
d2871d601a 4.0.5 2022-10-11 13:40:26 +02:00
9c66d88dc0 fix(core): update 2022-10-11 13:40:25 +02:00
fb4c84e1de 4.0.4 2022-10-11 13:38:40 +02:00
57aca36f11 fix(core): update 2022-10-11 13:38:40 +02:00
6 changed files with 12 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ stages:
- metadata
before_script:
- npm install -g @shipzone/npmci
- pnpm install -g @shipzone/npmci pnpm
# ====================
# security stage

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@shipzone/npmci",
"version": "4.0.3",
"version": "4.0.9",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@shipzone/npmci",
"version": "4.0.3",
"version": "4.0.9",
"license": "MIT",
"dependencies": {
"@apiglobal/typedrequest": "^2.0.10",

View File

@@ -1,6 +1,6 @@
{
"name": "@shipzone/npmci",
"version": "4.0.3",
"version": "4.0.9",
"private": false,
"description": "node and docker in gitlab ci on steroids",
"main": "dist_ts/index.js",

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@shipzone/npmci',
version: '4.0.3',
version: '4.0.9',
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}`);
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;
}

View File

@@ -151,6 +151,7 @@ export class NpmciNpmManager {
logger.log('info', `now preparing environment:`);
this.prepare();
await bash(`npm -v`);
await bash(`pnpm -v`);
// -> build it
await this.install();
@@ -172,16 +173,16 @@ export class NpmciNpmManager {
public async install(): Promise<void> {
logger.log('info', 'now installing dependencies:');
await bash('npm ci');
await bash('pnpm install');
}
public async build(): Promise<void> {
logger.log('info', 'now building the project:');
await bash('npm run build');
await bash('pnpm run build');
}
public async test(): Promise<void> {
logger.log('info', 'now starting tests:');
await bash('npm test');
await bash('pnpm test');
}
}