Skip to content

Commit d3d0e47

Browse files
karldreherclaude
andauthored
feat!: upgrade node to 24 and regain deployability (#185)
* chore: upgrade node to 24 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci: remove deprecated github pages deploy, fix ci * chore: add ci test job and remove vercel.json Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: update jest to v29 and fix node 24 compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: revert tsconfig target to es2015 for next.js 11 esbuild compat Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: pin @types/react and @types/react-dom to latest 17.x Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: correct ci trigger branch from main to master Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: pin @types/react to 17.0.40 and fix build script for node 24 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e8f03a1 commit d3d0e47

7 files changed

Lines changed: 18230 additions & 6043 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,34 @@
11
name: Build & Deploy
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- main
4+
pull_request:
5+
branches:
6+
- master
107

118
jobs:
12-
build:
13-
name: Build
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v1
17-
- name: Install Dependencies
18-
run: npm i
19-
- name: Build
20-
run: npm run export
21-
- name: Archive Build
22-
uses: actions/upload-artifact@master
23-
with:
24-
name: public
25-
path: public
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version-file: .nvmrc
17+
- name: Install Dependencies
18+
run: npm i
19+
- name: Test
20+
run: npm test
2621

27-
deploy:
28-
name: Deploy
29-
needs: build
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout Repo
33-
uses: actions/checkout@master
34-
- name: Download Artifact
35-
uses: actions/download-artifact@master
36-
with:
37-
name: public
38-
path: deploy
39-
- name: GitHub Pages action
40-
uses: peaceiris/actions-gh-pages@v3.7.3
41-
with:
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: deploy
22+
build:
23+
name: Build
24+
runs-on: ubuntu-latest
25+
needs: test
26+
steps:
27+
- uses: actions/checkout@v6
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version-file: .nvmrc
31+
- name: Install Dependencies
32+
run: npm i
33+
- name: Build
34+
run: npm run export

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.17.5
1+
24

jest.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
22
module.exports = {
33
preset: "ts-jest",
4-
testEnvironment: "jsdom",
4+
testEnvironment: "node",
55
setupFiles: ["./jest.setup.js"],
66
roots: ["src"],
7+
transformIgnorePatterns: [
8+
"/node_modules/(?!(chroma-js|javascript-time-ago|mathjs|nanoid)/)",
9+
],
710
};

0 commit comments

Comments
 (0)