mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-4649] fix npm publishing
This commit is contained in:
24
.github/actions/publish-libs/action.yml
vendored
24
.github/actions/publish-libs/action.yml
vendored
@@ -76,11 +76,21 @@ runs:
|
|||||||
- name: publish tag to GH registry
|
- name: publish tag to GH registry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
export PROJECTS=(
|
||||||
|
'aca-shared'
|
||||||
|
'aca-folder-rules'
|
||||||
|
'adf-office-services-ext'
|
||||||
|
'aca-about'
|
||||||
|
'aca-preview'
|
||||||
|
'aca-viewer'
|
||||||
|
'aca-content'
|
||||||
|
);
|
||||||
|
|
||||||
for PROJECT in ${PROJECTS[@]}
|
for PROJECT in ${PROJECTS[@]}
|
||||||
do
|
do
|
||||||
cd $DIST_DIR/${PROJECT}
|
cd $DIST_DIR/${PROJECT}
|
||||||
|
|
||||||
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
|
if [[ "${{ inputs.dry-run }}" == "true" ]]; then
|
||||||
echo -e "Publish with dry mode for project to GH registry: $PROJECT\n"
|
echo -e "Publish with dry mode for project to GH registry: $PROJECT\n"
|
||||||
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
||||||
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
||||||
@@ -101,11 +111,21 @@ runs:
|
|||||||
- name: publish tag to NPM registry
|
- name: publish tag to NPM registry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
export PROJECTS=(
|
||||||
|
'aca-shared'
|
||||||
|
'aca-folder-rules'
|
||||||
|
'adf-office-services-ext'
|
||||||
|
'aca-about'
|
||||||
|
'aca-preview'
|
||||||
|
'aca-viewer'
|
||||||
|
'aca-content'
|
||||||
|
);
|
||||||
|
|
||||||
for PROJECT in ${PROJECTS[@]}
|
for PROJECT in ${PROJECTS[@]}
|
||||||
do
|
do
|
||||||
cd $DIST_DIR/${PROJECT}
|
cd $DIST_DIR/${PROJECT}
|
||||||
|
|
||||||
if [[ "${{ inputs.dry-run }}" != "true" ]]; then
|
if [[ "${{ inputs.dry-run }}" == "true" ]]; then
|
||||||
echo -e "Publish with dry mode for project to NPM registry: $PROJECT\n"
|
echo -e "Publish with dry mode for project to NPM registry: $PROJECT\n"
|
||||||
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
echo -e "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n"
|
||||||
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
npm publish --dry-run --tag ${{ inputs.npm_tag }}
|
||||||
|
Reference in New Issue
Block a user