Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a3befe5af | |||
| 385a93a05e | |||
| b4d444ff05 | |||
| 487bcb9a70 | |||
| aaf11b66d7 | |||
| 83d7d46896 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.62",
|
"version": "3.1.65",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.62",
|
"version": "3.1.65",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "node and docker in gitlab ci on steroids",
|
"description": "node and docker in gitlab ci on steroids",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { logger } from '../npmci.logging';
|
import { logger } from '../npmci.logging';
|
||||||
import * as plugins from './mod.plugins';
|
import * as plugins from './mod.plugins';
|
||||||
import { bash } from '../npmci.bash';
|
import { bash, bashNoError } from '../npmci.bash';
|
||||||
import { Npmci } from '../npmci.classes.npmci';
|
import { Npmci } from '../npmci.classes.npmci';
|
||||||
|
|
||||||
export class NpmciGitManager {
|
export class NpmciGitManager {
|
||||||
@@ -49,11 +49,17 @@ export class NpmciGitManager {
|
|||||||
|
|
||||||
// plugins.smartgit.GitRepo;
|
// plugins.smartgit.GitRepo;
|
||||||
|
|
||||||
|
// remove old mirrors
|
||||||
|
await bashNoError('git remote rm mirror');
|
||||||
|
|
||||||
// add the mirror
|
// add the mirror
|
||||||
await bash(
|
await bash(
|
||||||
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
|
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
|
||||||
);
|
);
|
||||||
|
await bash(`git fetch`);
|
||||||
await bash(`git push mirror --all`);
|
await bash(`git push mirror --all`);
|
||||||
|
await bash(`git checkout master`);
|
||||||
|
await bash(`git push mirror master`);
|
||||||
logger.log('ok', 'pushed all branches to mirror!');
|
logger.log('ok', 'pushed all branches to mirror!');
|
||||||
await bash(`git push mirror --tags`);
|
await bash(`git push mirror --tags`);
|
||||||
logger.log('ok', 'pushed all tags to mirror!');
|
logger.log('ok', 'pushed all tags to mirror!');
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ export class NpmciNpmManager {
|
|||||||
case 'install':
|
case 'install':
|
||||||
await this.install();
|
await this.install();
|
||||||
break;
|
break;
|
||||||
|
case 'build':
|
||||||
|
await this.build();
|
||||||
|
break;
|
||||||
case 'prepare':
|
case 'prepare':
|
||||||
await this.prepare();
|
await this.prepare();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user