diff --git a/lib/cli/scripts/npm-publish.ts b/lib/cli/scripts/npm-publish.ts index 0bec305a5d..a86467dcae 100644 --- a/lib/cli/scripts/npm-publish.ts +++ b/lib/cli/scripts/npm-publish.ts @@ -56,7 +56,7 @@ async function npmPublish(args: PublishArgs, project: string) { const exist = npmCheckExist(project, version); if (!exist) { - logger.info(`Publishing lib ${project} to npm`); + logger.info(`Publishing lib ${project} to registry ${args.npmRegistry}`); const options = ['publish']; if (args.tag) { options.push('-tag'); @@ -92,7 +92,7 @@ function npmCheckExist(project: string, version: string) { } function changeRegistry(args: PublishArgs, project: string) { - logger.info(`Change registry... `); + logger.info(`Change registry... to ${args.npmRegistry} `); const folder = `${args.pathProject}/dist/libs/${project}`; const content = `strict-ssl=true diff --git a/scripts/travis/release/release-npm.sh b/scripts/travis/release/release-npm.sh index 9b848d378e..a086754174 100755 --- a/scripts/travis/release/release-npm.sh +++ b/scripts/travis/release/release-npm.sh @@ -23,6 +23,14 @@ then TAG_NPM=alpha fi +echo "Publishing on GH PKG registry with tag $TAG_NPM" +./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \ + --npmRegistry "npm.pkg.github.com" \ + --tokenRegistry $github_token \ + --tag $TAG_NPM \ + --pathProject "$(pwd)" \ + "$@" + echo "Publishing on Public npm registry with tag $TAG_NPM" ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \ --npmRegistry $NPM_REGISTRY_ADDRESS \ @@ -30,11 +38,3 @@ echo "Publishing on Public npm registry with tag $TAG_NPM" --tag $TAG_NPM \ --pathProject "$(pwd)" \ "$@" - -echo "Publishing on GH PKG registry with tag $TAG_NPM" -./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \ - --npmRegistry "npm.pkg.github.com" \ - --tokenRegistry $github_token \ - --tag $TAG_NPM \ - --pathProject "$(pwd)" \ - "$@" \ No newline at end of file