Skip to content

Commit

Permalink
⚙️ (jfrog-setup) [NO-ISSUE]: Push lib to jfrog (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedsxc authored Sep 5, 2024
1 parent 37bd3f8 commit 2f6ec3c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ env:
jobs:
publish:
environment: Production
runs-on: ubuntu-latest
runs-on: ledgerhq-shared-medium
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4

Expand All @@ -21,11 +25,25 @@ jobs:

- name: build libraries
run: pnpm build

- name: Login to internal JFrog registry
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: publish
- name: Setup npm config for JFrog
env:
NPM_REGISTRY: jfrog.ledgerlabs.net/artifactory/api/npm/ldk-npm-prod-public
NPM_REGISTRY_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }}
run: |
cat << EOF | tee .npmrc
registry=https://${NPM_REGISTRY}/
//${NPM_REGISTRY}/:_authToken=${NPM_REGISTRY_TOKEN}
EOF
- name: Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ lib

# eslint
.eslintcache

# npm config
.npmrc

0 comments on commit 2f6ec3c

Please sign in to comment.