Skip to content

Commit

Permalink
chore(INFRAPRJ-6604): separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dedsxc committed Sep 4, 2024
1 parent 95bb162 commit 97ad0c4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ jobs:
- name: Login to JFrog Ledger
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: Publish to npm

- name: Create Release Pull Request or Publish to npm
id: changesets
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/
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}

- 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 JFrog
if: steps.changesets.outputs.hasChangesets == 'false'
run: pnpm publish --no-git-checks --registry https://jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public/

0 comments on commit 97ad0c4

Please sign in to comment.