From fb6c10b188986119ecd87a7c6c50ca100f83d0e1 Mon Sep 17 00:00:00 2001 From: Daniel Colina Date: Fri, 4 Oct 2024 12:55:10 +0200 Subject: [PATCH] #30246 Informing the correct NPM token. --- .../deployment/deploy-javascript-sdk/action.yml | 12 +++++++++--- .github/workflows/cicd_3-trunk.yml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml b/.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml index 08199923f74c..cb252d169e12 100644 --- a/.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml +++ b/.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml @@ -37,7 +37,7 @@ outputs: value: ${{ steps.next_version.outputs.next_version }} published: description: 'SDK libs - Published' - value: ${{ steps.next_version.outputs.publish }} + value: ${{ steps.deployment_status.outputs.published }} runs: using: "composite" steps: @@ -209,9 +209,15 @@ runs: cd $sdk && echo "$(pwd)" echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc npm publish --access public --tag $NPM_TAG - npm dist-tag $NEXT_VERSION latest + npm dist-tag add @dotcms/${sdk}@${NEXT_VERSION} latest cd .. done echo "::endgroup::" shell: bash - \ No newline at end of file + + - name: 'Set output' + id: deployment_status + if: success() + run: | + echo "published=true" >> $GITHUB_OUTPUT + shell: bash \ No newline at end of file diff --git a/.github/workflows/cicd_3-trunk.yml b/.github/workflows/cicd_3-trunk.yml index ab3e724ca8a1..309bdbc8344d 100644 --- a/.github/workflows/cicd_3-trunk.yml +++ b/.github/workflows/cicd_3-trunk.yml @@ -109,6 +109,7 @@ jobs: DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} EE_REPO_USERNAME: ${{ secrets.EE_REPO_USERNAME }} EE_REPO_PASSWORD: ${{ secrets.EE_REPO_PASSWORD }} + NPM_ORG_TOKEN: ${{ secrets.NPM_ORG_TOKEN }} SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} # Finalize job - aggregates results from previous jobs