From 17bfb4b62321b02a4bcefcb3d68f7f256353f15f Mon Sep 17 00:00:00 2001 From: Enguerrand Allamel Date: Tue, 24 Dec 2024 15:40:47 +0100 Subject: [PATCH] chore: push to jfrog --- .github/workflows/build.yaml | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fda2344..f5f66f2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: diff --git a/package.json b/package.json index 20c228c..4d06571 100644 --- a/package.json +++ b/package.json @@ -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": {