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",