From d63c314200a73ca0f11e6869cf21fefb902b17e6 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 7 Mar 2023 12:47:26 +0000 Subject: [PATCH] [ACA-4649] fix npm publishing --- .github/actions/publish-libs/action.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/actions/publish-libs/action.yml b/.github/actions/publish-libs/action.yml index fe34fef6a..97badad4a 100644 --- a/.github/actions/publish-libs/action.yml +++ b/.github/actions/publish-libs/action.yml @@ -76,11 +76,21 @@ runs: - name: publish tag to GH registry shell: bash run: | + export PROJECTS=( + 'aca-shared' + 'aca-folder-rules' + 'adf-office-services-ext' + 'aca-about' + 'aca-preview' + 'aca-viewer' + 'aca-content' + ); + for PROJECT in ${PROJECTS[@]} do 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 "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n" npm publish --dry-run --tag ${{ inputs.npm_tag }} @@ -101,11 +111,21 @@ runs: - name: publish tag to NPM registry shell: bash run: | + export PROJECTS=( + 'aca-shared' + 'aca-folder-rules' + 'adf-office-services-ext' + 'aca-about' + 'aca-preview' + 'aca-viewer' + 'aca-content' + ); + for PROJECT in ${PROJECTS[@]} do 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 "npm publish --dry-run --tag ${{ inputs.npm_tag }} \n" npm publish --dry-run --tag ${{ inputs.npm_tag }}