Skip to content

Commit 6e038c8

Browse files
feat: update build and release process; update all major deps
1 parent fc33197 commit 6e038c8

File tree

25 files changed

+2570
-2883
lines changed

25 files changed

+2570
-2883
lines changed

.changeset/README.md

-6
This file was deleted.

.changeset/config.json

-11
This file was deleted.

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: pnpm/action-setup@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: lts/*
22+
cache: pnpm
23+
- run: pnpm dlx changelogithub
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

+9-18
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
test:
77
name: Test Node.js ${{ matrix.node-version }}
88
runs-on: ubuntu-latest
9+
910
strategy:
1011
fail-fast: true
1112
matrix:
1213
node-version:
1314
- 18
1415
- 22
16+
- 23
1517

1618
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v3
22-
id: pnpm-install
23-
with:
24-
version: 9.12.2
25-
run_install: false
26-
27-
- name: Install Node.js
28-
uses: actions/setup-node@v4
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v4
21+
- uses: actions/setup-node@v4
2922
with:
3023
node-version: ${{ matrix.node-version }}
3124
cache: 'pnpm'
3225

33-
- name: Install dependencies
34-
run: pnpm install --frozen-lockfile --strict-peer-dependencies
35-
36-
- name: Run test
37-
run: pnpm test
26+
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
27+
- run: pnpm build
28+
- run: pnpm test
3829

3930
- name: Build minimal example
4031
run: |

examples/cra/CHANGELOG.md

-87
This file was deleted.

examples/cra/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"eject": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts eject"
1010
},
1111
"dependencies": {
12-
"@types/node": "^22.8.4",
13-
"@types/react": "^18.3.12",
14-
"@types/react-dom": "^18.3.1",
12+
"@types/node": "^22.13.10",
13+
"@types/react": "^19.0.11",
14+
"@types/react-dom": "^19.0.4",
1515
"notion-types": "workspace:*",
16-
"react": "^18.3.1",
17-
"react-dom": "^18.3.1",
16+
"react": "^19.0.0",
17+
"react-dom": "^19.0.0",
1818
"react-notion-x": "workspace:*",
1919
"react-scripts": "5.0.1"
2020
},

examples/full/CHANGELOG.md

-111
This file was deleted.

examples/full/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
"test:lint": "eslint ."
1313
},
1414
"dependencies": {
15-
"@notionhq/client": "^2.2.15",
15+
"@notionhq/client": "^2.3.0",
1616
"classnames": "^2.5.1",
17-
"ky": "^1.7.2",
17+
"ky": "^1.7.5",
1818
"lqip-modern": "^2.1.0",
19-
"next": "^15.0.2",
19+
"next": "^15.2.3",
2020
"notion-client": "workspace:*",
2121
"notion-compat": "workspace:*",
2222
"notion-types": "workspace:*",
2323
"notion-utils": "workspace:*",
24-
"p-map": "^7.0.2",
24+
"p-map": "^7.0.3",
2525
"p-memoize": "^7.1.1",
26-
"prismjs": "^1.27.0",
27-
"react": "^18.3.1",
28-
"react-dom": "^18.3.1",
26+
"prismjs": "^1.30.0",
27+
"react": "^19.0.0",
28+
"react-dom": "^19.0.0",
2929
"react-notion-x": "workspace:*",
3030
"react-tweet-embed": "^2.0.0"
3131
},

0 commit comments

Comments
 (0)