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