From 78eb674828125c3ab00a4938f15cbed30d4ac6ef Mon Sep 17 00:00:00 2001 From: "Valentin D. Pinkman" Date: Wed, 25 Sep 2024 11:38:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20(repo):=20Setup=20prerelease=20h?= =?UTF-8?q?ook=20for=20changeset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 9 +++++---- package.json | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8116ead52..802b33ece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ 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 @@ -41,10 +41,11 @@ jobs: NPM_REGISTRY_TOKEN: ${{ steps.jfrog-login.outputs.oidc-token }} run: | cat << EOF | tee .npmrc + enable-pre-post-scripts=true registry=https://${NPM_REGISTRY}/ //${NPM_REGISTRY}/:_authToken=${NPM_REGISTRY_TOKEN} EOF - + - name: Create dist directory to store tarball run: mkdir -p dist @@ -57,7 +58,7 @@ jobs: createGithubReleases: false env: GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - + # Test - name: List dist directory run: ls -la dist @@ -67,7 +68,7 @@ jobs: uses: LedgerHQ/actions-security/actions/attest@actions/attest-1 with: subject-path: ./dist - + # The action currently doesn't support pushing the blob to the registry - name: Sign tarball if: steps.changesets.outputs.published == 'true' diff --git a/package.json b/package.json index e1d2dc0be..d5c2105a0 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "ui": "pnpm --filter @ledgerhq/device-sdk-ui", "sample": "pnpm --filter @ledgerhq/device-sdk-sample", "bump": "changeset version", + "prerelease": "pnpm recursive exec -- pnpm pack", "release": "changeset publish", "changelog": "changeset add", "commit": "gitmoji -c",