Skip to content

Commit aa2f07e

Browse files
committed
packages updated
1 parent d1283e4 commit aa2f07e

File tree

3 files changed

+343
-378
lines changed

3 files changed

+343
-378
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,21 @@ jobs:
1616
- name: Set up Node.js
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: '20'
20-
21-
- name: Install dependencies for canvas
22-
run: |
23-
sudo apt-get update
24-
sudo apt-get install -y build-essential libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev g++
25-
pnpm rebuild canvas
19+
node-version: '22'
2620

2721
- name: Cache node modules
2822
uses: actions/cache@v3
2923
with:
3024
path: node_modules
31-
key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml', 'package.json') }}
25+
key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }}
3226
restore-keys: |
3327
${{ runner.os }}-node_modules-
3428
3529
- name: Install pnpm
3630
run: npm install -g pnpm
3731

3832
- name: Install dependencies
39-
run: |
40-
pnpm install
41-
pnpm remove canvas
42-
pnpm add canvas
43-
pnpm rebuild canvas
33+
run: pnpm install
4434

4535
- name: Run Linter
4636
run: pnpm lint

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"scripts": {
1919
"dev": "next dev",
2020
"postbuild": "next-sitemap",
21+
"postinstall": "pnpm rebuild canvas",
2122
"build": "next build",
2223
"start": "next start",
2324
"lint": "next lint"
@@ -40,6 +41,7 @@
4041
"@vercel/analytics": "^1.4.1",
4142
"@vercel/speed-insights": "^1.1.0",
4243
"autoprefixer": "^10.4.20",
44+
"canvas": "^3.1.0",
4345
"class-variance-authority": "^0.7.1",
4446
"clsx": "^2.1.1",
4547
"framer-motion": "^11.16.1",
@@ -48,6 +50,7 @@
4850
"next-sitemap": "^4.2.3",
4951
"next-themes": "^0.3.0",
5052
"nodemailer": "^6.9.16",
53+
"pdfjs-dist": "^4.10.38",
5154
"react": "^18.3.1",
5255
"react-dom": "^18.3.1",
5356
"recharts": "^2.15.0",

0 commit comments

Comments
 (0)