Skip to content

Commit

Permalink
#30246 Informing the correct NPM token.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina committed Oct 4, 2024
1 parent a12617a commit fb6c10b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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


- name: 'Set output'
id: deployment_status
if: success()
run: |
echo "published=true" >> $GITHUB_OUTPUT
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/cicd_3-trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb6c10b

Please sign in to comment.