File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -16,26 +16,31 @@ jobs:
1616 - name : Set up Node.js
1717 uses : actions/setup-node@v3
1818 with :
19- node-version : ' 22 '
19+ node-version : ' 20 '
2020
2121 - name : Install dependencies for canvas
2222 run : |
2323 sudo apt-get update
24- sudo apt-get install -y build-essential libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++
24+ sudo apt-get install -y build-essential libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev g++
25+ pnpm rebuild canvas
2526
2627 - name : Cache node modules
2728 uses : actions/cache@v3
2829 with :
2930 path : node_modules
30- key : ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }}
31+ key : ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml', 'package.json' ) }}
3132 restore-keys : |
3233 ${{ runner.os }}-node_modules-
3334
3435 - name : Install pnpm
3536 run : npm install -g pnpm
3637
3738 - name : Install dependencies
38- run : pnpm install
39+ run : |
40+ pnpm install
41+ pnpm remove canvas
42+ pnpm add canvas
43+ pnpm rebuild canvas
3944
4045 - name : Run Linter
4146 run : pnpm lint
You can’t perform that action at this time.
0 commit comments