@@ -420,7 +420,9 @@ It uses the following variables:
...
@@ -420,7 +420,9 @@ It uses the following variables:
#### Configure the target registry
#### Configure the target registry
The target registry url for publication shall be configured in the `publishConfig` of your `package.json` file. Examples:
The target registry url for publication shall be configured in the `publishConfig` of your `package.json` file. \
If no registry is configured in `publishConfig`, it will publish to default target registry 'https://registry.npmjs.org/' only if `access` is set to 'public' in the `publishConfig` of your `package.json` file. \
log_info "No publish registry url found in your package.json file"
log_info "No publish registry url found in your package.json file, and publish access is not set to public"
log_info "Publish will only work if you're using GitLab project-level registry (use scope \\e[33;1m@${CI_PROJECT_ROOT_NAMESPACE}\\e[0m)"
log_info "Publish will only work if you're using GitLab project-level registry (use scope \\e[33;1m@${CI_PROJECT_ROOT_NAMESPACE}\\e[0m)"
log_info "Otherwise, declare the target registry url under \\e[33;1m'publishConfig' > '$publish_registry_key'\\e[0m key in your package.json file..."
log_info "Otherwise, declare the target registry url under \\e[33;1m'publishConfig' > '$publish_registry_key'\\e[0m key in your package.json file, or set 'public' access under \\e[33;1m'publishConfig' > 'access'\\e[0m to publish on default registry https://registry.npmjs.org/..."