Skip to content

Commit

Permalink
publish on gh first (#8314)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriziovitale authored Feb 23, 2023
1 parent 7d02ea6 commit 2dccde9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/cli/scripts/npm-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions scripts/travis/release/release-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)" \
"$@"
"$@"

0 comments on commit 2dccde9

Please sign in to comment.