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