Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #27

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
22 changes: 22 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: create release pull request
on:
push:
branches:
# - develop
- feature/dsdk-66-changelog

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
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: 8 additions & 0 deletions apps/sample/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @ledgerhq/device-sdk-sample

## 0.1.1

### Patch Changes

- Updated dependencies [[`123374e`](https://github.com/LedgerHQ/device-sdk-ts/commit/123374e2d818bedb70c787a53f15f4e4599a4248)]:
- @ledgerhq/[email protected]
2 changes: 1 addition & 1 deletion apps/sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/device-sdk-sample",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev",
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
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @ledgerhq/device-sdk-core

## 0.1.0

### Minor Changes

- [#26](https://github.com/LedgerHQ/device-sdk-ts/pull/26) [`123374e`](https://github.com/LedgerHQ/device-sdk-ts/commit/123374e2d818bedb70c787a53f15f4e4599a4248) Thanks [@valpinkman](https://github.com/valpinkman)! - Added new logger module
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ledgerhq/device-sdk-core",
"version": "0.0.1",
"version": "0.1.0",
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/api/DeviceSdkBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export class LedgerDeviceSdkBuilder {
loggers: LoggerSubscriber[] = [];

build(): DeviceSdk {
console.log("Building DeviceSdk");
return new DeviceSdk({ stub: this.stub, loggers: this.loggers });
}

Expand Down
Loading