Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e820bec27 | |||
| 91a3d612c6 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.36",
|
"version": "3.1.37",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.36",
|
"version": "3.1.37",
|
||||||
"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",
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export let mirror = async () => {
|
|||||||
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;
|
// plugins.smartgit.GitRepo;
|
||||||
|
|
||||||
// add the mirror
|
// add the mirror
|
||||||
await bash(
|
await bash(
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ const publish = async () => {
|
|||||||
if (config.npmAccessLevel === 'public') {
|
if (config.npmAccessLevel === 'public') {
|
||||||
publishVerdaccioAsWell = true;
|
publishVerdaccioAsWell = true;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
throw new Error('You need to set a npmAccessLevel!!!');
|
||||||
}
|
}
|
||||||
// -> configure registry url
|
// -> configure registry url
|
||||||
if (config.npmRegistryUrl) {
|
if (config.npmRegistryUrl) {
|
||||||
@@ -104,6 +106,11 @@ const publish = async () => {
|
|||||||
`package is public and verdaccio registry is specified. Also publishing to Verdaccio!`
|
`package is public and verdaccio registry is specified. Also publishing to Verdaccio!`
|
||||||
);
|
);
|
||||||
publishCommand = `${publishCommand} && npm publish ${npmAccessCliString} --registry=https://${verdaccioRegistry}`;
|
publishCommand = `${publishCommand} && npm publish ${npmAccessCliString} --registry=https://${verdaccioRegistry}`;
|
||||||
|
} else {
|
||||||
|
logger.log(
|
||||||
|
'error',
|
||||||
|
`This package should also be published to Verdaccio, however there is no Verdaccio registry data available!`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return publishCommand;
|
return publishCommand;
|
||||||
|
|||||||
Reference in New Issue
Block a user