From 2dccde9e6b1caaf9afbb14acc883757a45cb561d Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Thu, 23 Feb 2023 17:06:17 +0000 Subject: [PATCH] publish on gh first (#8314) --- lib/cli/scripts/npm-publish.ts | 4 ++-- scripts/travis/release/release-npm.sh | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/cli/scripts/npm-publish.ts b/lib/cli/scripts/npm-publish.ts index 0bec305a5da..a86467dcaeb 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 9b848d378e2..a086754174f 100755 --- a/scripts/travis/release/release-npm.sh +++ b/scripts/travis/release/release-npm.sh @@ -23,18 +23,18 @@ then TAG_NPM=alpha fi -echo "Publishing on Public npm registry with tag $TAG_NPM" +echo "Publishing on GH PKG registry with tag $TAG_NPM" ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \ - --npmRegistry $NPM_REGISTRY_ADDRESS \ - --tokenRegistry $NPM_REGISTRY_TOKEN \ + --npmRegistry "npm.pkg.github.com" \ + --tokenRegistry $github_token \ --tag $TAG_NPM \ --pathProject "$(pwd)" \ "$@" -echo "Publishing on GH PKG registry with tag $TAG_NPM" +echo "Publishing on Public npm registry with tag $TAG_NPM" ./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \ - --npmRegistry "npm.pkg.github.com" \ - --tokenRegistry $github_token \ + --npmRegistry $NPM_REGISTRY_ADDRESS \ + --tokenRegistry $NPM_REGISTRY_TOKEN \ --tag $TAG_NPM \ --pathProject "$(pwd)" \ - "$@" \ No newline at end of file + "$@"