Skip to content

Commit

Permalink
chore: push to jfrog
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Dec 24, 2024
1 parent c40f334 commit 17bfb4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ jobs:
PACKAGE_FILENAME=$(echo "$pack_json" | jq -r '.[0].filename')
echo "PACKAGE_FILENAME=${PACKAGE_FILENAME}" >> $GITHUB_OUTPUT
- name: Login to JFrog Ledger
id: jfrog-login
uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1

- name: Configure npm authentication
run: |
echo "registry=https://jfrog.ledgerlabs.net/artifactory/api/npm/cybersec-npm-prd-public/" > .npmrc
echo "//jfrog.ledgerlabs.net/artifactory/api/npm/cybersec-npm-prd-public/:_authToken=${{ steps.jfrog-login.outputs.oidc-token }}" >> .npmrc
echo "//jfrog.ledgerlabs.net/artifactory/api/npm/cybersec-npm-prd-public/:always-auth=true" >> .npmrc
- name: Publish package to JFrog Ledger with npm
run: |
npm publish
- name: Attest for npmjs.com
uses: LedgerHQ/actions-security/actions/attest-for-npmsjs-com@feat-init-npmjs-com-action
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/examplepackage12",
"version": "0.5.0",
"version": "0.6.0",
"description": "An example npm package for demonstration purposes.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 17bfb4b

Please sign in to comment.