Skip to content

Commit

Permalink
🔧 Passe à npm pour builder en CI
Browse files Browse the repository at this point in the history
Ce patch effectue deux modification:

1. passer de à npm à la place de pnpm: ça corrige un bug d'optimization
   des images (bizarre) au passage
2. Configure Node 20 en CI
  • Loading branch information
ushu committed Feb 10, 2025
1 parent c418238 commit 8761902
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,19 @@ jobs:
# uses: actions/setup-python@v4

- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Install PNPM
run: npm install -g pnpm
node-version: "20.17.0"
cache: "npm"

- name: Install project Dependencies
run: pnpm install
run: npm ci

- name: Patch astro config
run: node patch-astro-config.js

- name: Build
run: pnpm run build

# - name: Post-Build Setup
# run: |
# python patch-hrefs-for-gh-pages.py
run: npm run build

- name: Deployment Setup
run: |
Expand Down

0 comments on commit 8761902

Please sign in to comment.