Skip to content

Commit

Permalink
💚 (repo): Setup prerelease hook for changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Sep 25, 2024
1 parent ecc46ab commit 78eb674
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -57,7 +58,7 @@ jobs:
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

# Test
- name: List dist directory
run: ls -la dist
Expand All @@ -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'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 78eb674

Please sign in to comment.