From a2a5731e2ac82092959472ca43c7b63edab28528 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Wed, 4 Sep 2024 16:20:32 +0200 Subject: [PATCH] chore(INFRAPRJ-6604): separate steps --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 620d869b2..f43e6f712 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,13 +31,14 @@ jobs: - name: Login to JFrog Ledger id: jfrog-login 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 - name: Publish to npm uses: changesets/action@v1 with: - publish: | - echo "//jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/:_authToken=${{ steps.jfrog-login.outputs.oidc-token }}" > ~/.npmrc - pnpm publish --no-git-checks --registry https://jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/ + publish: pnpm publish --no-git-checks --registry https://jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/ env: - GITHUB_TOKEN: ${{ github.token }} - NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} + NPM_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }} \ No newline at end of file