Skip to content

Commit

Permalink
fix-build-erros (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabros20 authored Oct 14, 2024
1 parent 89fdb00 commit 1356d37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ jobs:
with:
node-version: "18.17.0"

# Add this step to install system dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++
# Install all the Node dependencies for Gatsby, using your package.json file.
- name: Install Dependencies
run: npm install --legacy-peer-deps
run: npm install --legacy-peer-deps --canvas-prebuild-download-mirror=https://github.com/Automattic/node-canvas/releases/download/

# Speaks for itself no?
- name: Build Gatsby Site
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@popperjs/core": "^2.9.3",
"axios": "^1.6.2",
"bootstrap": "^5.1.0",
"canvas": "^2.11.2",
"canvas": "2.11.2",
"gatsby": "^5.12.11",
"gatsby-plugin-anchor-links": "^1.2.1",
"gatsby-plugin-client-side-redirect": "^1.1.0",
Expand Down

0 comments on commit 1356d37

Please sign in to comment.