Skip to content

Commit

Permalink
chore(INFRAPRJ-6604): setup npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
dedsxc committed Sep 5, 2024
1 parent d14a57a commit 3c367de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ jobs:
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: Setup npm config
run: echo "//jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/:_authToken=${{ steps.jfrog-login.outputs.oidc-token }}" > ~/.npmrc
run: |
cat << EOF | tee .npmrc
# Setup JFrog registry
registry=https://jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/
//jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/:_authToken=${{ steps.jfrog-login.outputs.oidc-token }}
EOF
- name: Publish to npm
uses: changesets/action@v1
with:
publish: pnpm publish --no-git-checks --registry https://jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_PAT }}
NPM_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }}

0 comments on commit 3c367de

Please sign in to comment.