publish on gh first (#8314)

This commit is contained in:
Maurizio Vitale 2023-02-23 17:06:17 +00:00 committed by GitHub
parent 7d02ea61a2
commit 2dccde9e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -23,14 +23,6 @@ then
TAG_NPM=alpha
fi
echo "Publishing on Public npm registry with tag $TAG_NPM"
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \
--npmRegistry $NPM_REGISTRY_ADDRESS \
--tokenRegistry $NPM_REGISTRY_TOKEN \
--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" \
@ -38,3 +30,11 @@ echo "Publishing on GH PKG registry with tag $TAG_NPM"
--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 \
--tokenRegistry $NPM_REGISTRY_TOKEN \
--tag $TAG_NPM \
--pathProject "$(pwd)" \
"$@"