From 3c367de884f8e84bba84ddf7bf08f8cb9cd6a288 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Thu, 5 Sep 2024 09:48:55 +0200 Subject: [PATCH] chore(INFRAPRJ-6604): setup npm config --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a4e94cce..e50149207 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file