Skip to content

⚙️ (jfrog) [NO-ISSUE]: Push lib to jfrog artifactory #56

⚙️ (jfrog) [NO-ISSUE]: Push lib to jfrog artifactory

⚙️ (jfrog) [NO-ISSUE]: Push lib to jfrog artifactory #56

Workflow file for this run

name: publish npm packages
# on:
# push:
# branches:
# - main
on:
pull_request:
env:
FORCE_COLOR: "1"
jobs:
publish:
# environment: Production
runs-on: ledgerhq-shared-medium
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-toolchain-composite
- name: install dependencies
run: pnpm install
- name: build libraries
run: pnpm build
- name: Login to JFrog Ledger
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
id: changesets
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: Publish
if: steps.changesets.outputs.hasChangesets == 'false'
run: |
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/