mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +00:00
publish on gh first (#8314)
This commit is contained in:
parent
7d02ea61a2
commit
2dccde9e6b
@ -56,7 +56,7 @@ async function npmPublish(args: PublishArgs, project: string) {
|
|||||||
const exist = npmCheckExist(project, version);
|
const exist = npmCheckExist(project, version);
|
||||||
|
|
||||||
if (!exist) {
|
if (!exist) {
|
||||||
logger.info(`Publishing lib ${project} to npm`);
|
logger.info(`Publishing lib ${project} to registry ${args.npmRegistry}`);
|
||||||
const options = ['publish'];
|
const options = ['publish'];
|
||||||
if (args.tag) {
|
if (args.tag) {
|
||||||
options.push('-tag');
|
options.push('-tag');
|
||||||
@ -92,7 +92,7 @@ function npmCheckExist(project: string, version: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changeRegistry(args: PublishArgs, project: 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 folder = `${args.pathProject}/dist/libs/${project}`;
|
||||||
const content =
|
const content =
|
||||||
`strict-ssl=true
|
`strict-ssl=true
|
||||||
|
@ -23,6 +23,14 @@ then
|
|||||||
TAG_NPM=alpha
|
TAG_NPM=alpha
|
||||||
fi
|
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"
|
echo "Publishing on Public npm registry with tag $TAG_NPM"
|
||||||
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \
|
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish \
|
||||||
--npmRegistry $NPM_REGISTRY_ADDRESS \
|
--npmRegistry $NPM_REGISTRY_ADDRESS \
|
||||||
@ -30,11 +38,3 @@ echo "Publishing on Public npm registry with tag $TAG_NPM"
|
|||||||
--tag $TAG_NPM \
|
--tag $TAG_NPM \
|
||||||
--pathProject "$(pwd)" \
|
--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)" \
|
|
||||||
"$@"
|
|
Loading…
x
Reference in New Issue
Block a user