Skip to content

Commit fa2305d

Browse files
authored
Merge branch 'main' into ci/add-codeql-workflow
2 parents 7765b57 + b7324a6 commit fa2305d

40 files changed

Lines changed: 7012 additions & 11097 deletions

.changeset/bright-clocks-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nostream": patch
3+
---
4+
5+
Migrate project tooling from npm to pnpm across CI workflows, Docker setup, hooks, and contributor commands.

.changeset/chubby-drinks-worry.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.changeset/config.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "cameri/nostream"
7+
}
8+
],
49
"commit": true,
5-
"fixed": [],
6-
"linked": [],
7-
"access": "restricted",
10+
"privatePackages": {
11+
"tag": true
12+
},
13+
"access": "public",
814
"baseBranch": "main",
9-
"updateInternalDependencies": "patch",
10-
"ignore": [],
11-
"commitMessage": "chore(release): version packages\n\n[skip ci]"
15+
"updateInternalDependencies": "patch"
1216
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nostream': patch
3+
---
4+
5+
Expire stale pending invoices when LNbits no longer has the invoice or reports it as unpaid past its expiry time.

.changeset/proud-pants-cry.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.changeset/vast-rats-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"nostream": patch
3+
---
4+
5+
add support for NIP-14 subject tags in text notes, with units tests to validate parsing and repository behavior

.changeset/wild-buttons-melt.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/changesets.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,23 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24+
- uses: pnpm/action-setup@v4
25+
2426
- uses: actions/setup-node@v3
2527
with:
2628
node-version-file: .nvmrc
27-
cache: npm
29+
cache: pnpm
2830

2931
- name: Install package dependencies
30-
run: npm ci
32+
run: pnpm install --frozen-lockfile
33+
34+
- run: git config user.name "github-actions[bot]"
35+
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3136

3237
- name: Create Release Pull Request
3338
uses: changesets/action@v1
3439
with:
35-
version: npm run changeset:version
40+
version: pnpm run changeset:version
3641
createGithubReleases: true
3742
title: "chore: release new version 🚀"
3843
commit: "chore: version packages"

.github/workflows/checks.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
uses: actions/checkout@v3
2121
with:
2222
fetch-depth: 0
23+
- uses: pnpm/action-setup@v4
2324
- uses: actions/setup-node@v3
2425
with:
2526
node-version-file: .nvmrc
26-
cache: npm
27+
cache: pnpm
2728
- name: Install package dependencies
28-
run: npm ci
29+
run: pnpm install --frozen-lockfile
2930
- name: Run commitlint
3031
uses: wagoid/commitlint-github-action@v5
3132
lint:
@@ -34,30 +35,32 @@ jobs:
3435
steps:
3536
- name: Checkout
3637
uses: actions/checkout@v3
38+
- uses: pnpm/action-setup@v4
3739
- uses: actions/setup-node@v3
3840
with:
3941
node-version-file: .nvmrc
40-
cache: npm
42+
cache: pnpm
4143
- name: Install package dependencies
42-
run: npm ci
44+
run: pnpm install --frozen-lockfile
4345
- name: Run Biome
44-
run: npm run lint
46+
run: pnpm run lint
4547
- name: Run Knip
46-
run: npm run knip
48+
run: pnpm run check:deps
4749
build-check:
4850
name: Build check
4951
runs-on: ubuntu-latest
5052
steps:
5153
- name: Checkout
5254
uses: actions/checkout@v3
55+
- uses: pnpm/action-setup@v4
5356
- uses: actions/setup-node@v3
5457
with:
5558
node-version-file: .nvmrc
56-
cache: npm
59+
cache: pnpm
5760
- name: Install package dependencies
58-
run: npm ci
61+
run: pnpm install --frozen-lockfile
5962
- name: Run build check
60-
run: npm run build:check
63+
run: pnpm run build:check
6164
test-units-and-cover:
6265
name: Unit Tests And Coverage
6366
runs-on: ubuntu-latest
@@ -68,16 +71,17 @@ jobs:
6871
steps:
6972
- name: Checkout
7073
uses: actions/checkout@v3
74+
- uses: pnpm/action-setup@v4
7175
- uses: actions/setup-node@v3
7276
with:
7377
node-version-file: .nvmrc
74-
cache: npm
78+
cache: pnpm
7579
- name: Install package dependencies
76-
run: npm ci
80+
run: pnpm install --frozen-lockfile
7781
- name: Run unit tests
78-
run: npm run test:unit
82+
run: pnpm run test:unit
7983
- name: Run coverage for unit tests
80-
run: npm run cover:unit
84+
run: pnpm run cover:unit
8185
if: ${{ always() }}
8286
- uses: actions/upload-artifact@v4
8387
name: Upload coverage report for unit tests
@@ -103,11 +107,12 @@ jobs:
103107
steps:
104108
- name: Checkout
105109
uses: actions/checkout@v3
110+
- uses: pnpm/action-setup@v4
106111
- uses: actions/setup-node@v3
107112
with:
108113
node-version-file: .nvmrc
109114
- name: Run integration tests
110-
run: npm run docker:test:integration
115+
run: pnpm run docker:test:integration
111116
- name: Generate Cucumber report annotations
112117
uses: deblockt/cucumber-report-annotations-action@v1.7
113118
if: ${{ always() }}
@@ -116,7 +121,7 @@ jobs:
116121
access-token: ${{ secrets.GITHUB_TOKEN }}
117122
path: .test-reports/integration/report.json
118123
- name: Run coverage for integration tests
119-
run: npm run docker:cover:integration
124+
run: pnpm run docker:cover:integration
120125
- name: Coveralls
121126
uses: coverallsapp/github-action@master
122127
if: ${{ always() }}
@@ -151,11 +156,12 @@ jobs:
151156
uses: actions/checkout@v3
152157
with:
153158
fetch-depth: 0
159+
- uses: pnpm/action-setup@v4
154160
- uses: actions/setup-node@v3
155161
with:
156162
node-version-file: .nvmrc
157-
cache: npm
163+
cache: pnpm
158164
- name: Install package dependencies
159-
run: npm ci
165+
run: pnpm install --frozen-lockfile
160166
- name: Check for changeset
161-
run: npx changeset status --since origin/${{ github.base_ref }}
167+
run: pnpm exec changeset status --since origin/${{ github.base_ref }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ npm-debug.log*
1313

1414
# Dependency directories
1515
node_modules/
16+
package-lock.json
1617

1718
# TypeScript cache
1819
*.tsbuildinfo
1920

20-
# Optional npm cache directory
21+
# Optional package manager cache directories
2122
.npm
23+
.pnpm-store
24+
pnpm-debug.log*
2225

2326
# Caches
2427
.eslintcache

0 commit comments

Comments
 (0)