Compare commits
	
		
			11 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 91288e2d74 | |||
| 25709b1f9a | |||
| 8a03d9aa94 | |||
| bbe1cf770a | |||
| ac8190282f | |||
| 446d140e32 | |||
| 726948651e | |||
| dd0a7bb782 | |||
| fca00ffcf8 | |||
| 13f6334ae5 | |||
| 7275a858d6 | 
							
								
								
									
										1793
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1793
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										21
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "@shipzone/npmci", |   "name": "@shipzone/npmci", | ||||||
|   "version": "3.1.65", |   "version": "3.1.70", | ||||||
|   "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", | ||||||
| @@ -26,10 +26,10 @@ | |||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@gitzone/tsbuild": "^2.1.17", |     "@gitzone/tsbuild": "^2.1.17", | ||||||
|     "@gitzone/tsrun": "^1.2.6", |     "@gitzone/tsrun": "^1.2.6", | ||||||
|     "@gitzone/tstest": "^1.0.27", |     "@gitzone/tstest": "^1.0.28", | ||||||
|     "@pushrocks/tapbundle": "^3.0.13", |     "@pushrocks/tapbundle": "^3.2.0", | ||||||
|     "@types/node": "^12.7.9", |     "@types/node": "^12.12.12", | ||||||
|     "tslint": "^5.20.0", |     "tslint": "^5.20.1", | ||||||
|     "tslint-config-prettier": "^1.18.0" |     "tslint-config-prettier": "^1.18.0" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
| @@ -40,20 +40,19 @@ | |||||||
|     "@pushrocks/qenv": "^4.0.6", |     "@pushrocks/qenv": "^4.0.6", | ||||||
|     "@pushrocks/smartanalytics": "^2.0.15", |     "@pushrocks/smartanalytics": "^2.0.15", | ||||||
|     "@pushrocks/smartcli": "^3.0.7", |     "@pushrocks/smartcli": "^3.0.7", | ||||||
|     "@pushrocks/smartdelay": "^2.0.3", |     "@pushrocks/smartdelay": "^2.0.6", | ||||||
|     "@pushrocks/smartfile": "^7.0.6", |     "@pushrocks/smartfile": "^7.0.6", | ||||||
|     "@pushrocks/smartgit": "^1.0.13", |     "@pushrocks/smartgit": "^1.0.13", | ||||||
|     "@pushrocks/smartlog": "^2.0.19", |     "@pushrocks/smartlog": "^2.0.21", | ||||||
|     "@pushrocks/smartlog-destination-local": "^8.0.2", |     "@pushrocks/smartlog-destination-local": "^8.0.2", | ||||||
|     "@pushrocks/smartparam": "^1.0.4", |     "@pushrocks/smartparam": "^1.0.4", | ||||||
|     "@pushrocks/smartpromise": "^3.0.6", |     "@pushrocks/smartpromise": "^3.0.6", | ||||||
|     "@pushrocks/smartrequest": "^1.1.36", |     "@pushrocks/smartrequest": "^1.1.43", | ||||||
|     "@pushrocks/smartshell": "^2.0.25", |     "@pushrocks/smartshell": "^2.0.25", | ||||||
|     "@pushrocks/smartsocket": "^1.1.49", |     "@pushrocks/smartsocket": "^1.1.58", | ||||||
|     "@pushrocks/smartssh": "^1.2.3", |     "@pushrocks/smartssh": "^1.2.3", | ||||||
|     "@pushrocks/smartstring": "^3.0.10", |     "@pushrocks/smartstring": "^3.0.14", | ||||||
|     "@servezone/servezone-interfaces": "^2.0.51", |     "@servezone/servezone-interfaces": "^2.0.51", | ||||||
|     "@types/shelljs": "^0.8.5", |  | ||||||
|     "@types/through2": "^2.0.34", |     "@types/through2": "^2.0.34", | ||||||
|     "through2": "^3.0.1" |     "through2": "^3.0.1" | ||||||
|   }, |   }, | ||||||
|   | |||||||
| @@ -47,22 +47,22 @@ export class NpmciGitManager { | |||||||
|       logger.log('info', 'found github token.'); |       logger.log('info', 'found github token.'); | ||||||
|       logger.log('info', 'attempting the mirror the repository to GitHub'); |       logger.log('info', 'attempting the mirror the repository to GitHub'); | ||||||
|  |  | ||||||
|       // plugins.smartgit.GitRepo; |  | ||||||
|  |  | ||||||
|       // remove old mirrors |       // remove old mirrors | ||||||
|       await bashNoError('git remote rm mirror'); |       await bashNoError('git remote rm mirror'); | ||||||
|  |  | ||||||
|  |       await bash(`git fetch`); | ||||||
|       // add the mirror |       // add the mirror | ||||||
|       await bash( |       await bashNoError( | ||||||
|         `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 bashNoError(`git push mirror --all`); | ||||||
|       await bash(`git push mirror --all`); |       await bashNoError(`git checkout origin/master`); | ||||||
|       await bash(`git checkout master`); |       await bashNoError(`git push mirror 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 bashNoError(`git push mirror --tags`); | ||||||
|       logger.log('ok', 'pushed all tags to mirror!'); |       logger.log('ok', 'pushed all tags to mirror!'); | ||||||
|  |       // remove old mirrors | ||||||
|  |       await bashNoError('git remote rm mirror'); | ||||||
|     } else { |     } else { | ||||||
|       logger.log('error', `cannot find NPMCI_GIT_GITHUBTOKEN env var!`); |       logger.log('error', `cannot find NPMCI_GIT_GITHUBTOKEN env var!`); | ||||||
|       process.exit(1); |       process.exit(1); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user