Skip to content

Commit

Permalink
🔨 (changelog): Setup changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Feb 15, 2024
1 parent 29278f9 commit 5ecb50b
Show file tree
Hide file tree
Showing 6 changed files with 733 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "LedgerHQ/device-sdk-ts"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
health-check:
runs-on: [device-sdk-4xlarge-linux]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./actions/setup-toolchain-composite

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: create release pull request
on:
push:
branches:
- develop

env:
FORCE_COLOR: "1"

jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./actions/setup-toolchain-composite
- name: install dependencies
run: pnpm install
- name: create release pull request
uses: changesets/action@v1
with:
version: pnpm bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions actions/setup-toolchain-composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ runs:
using: "composite"
steps:
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@
"ui": "pnpm --filter @ledgerhq/device-sdk-ui",
"sample": "pnpm --filter @ledgerhq/device-sdk-sample",
"prepare": "husky",
"commit": "gitmoji -c"
"bump": "changeset version",
"release": "changeset publish",
"changelog": "changeset add",
"commit": "gitmoji -c",
"commitcl": "pnpm changelog && pnpm commit"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"eslint": "^8.56.0",
Expand Down
Loading

0 comments on commit 5ecb50b

Please sign in to comment.