Skip to content

Commit 7b3e5df

Browse files
authored
Upgrade Node.js, dependent packages, and GitHub Actions (#100)
* Upgrade Node.js, dependent packages, and GitHub Actions * Update the command for installing chrome to prevent using the cached version of `@puppeteer/browsers` * Update chrome installation command for netlify * Use the compatible chromium in Vercel build * Fix vercel build: Install nss before building * Fix Vercel build: Install mesa-libgbm before build
1 parent da954e1 commit 7b3e5df

6 files changed

Lines changed: 460 additions & 2125 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
url: ${{ steps.deployment.outputs.page_url }}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

2828
- name: Install Node.js
29-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3030
with:
3131
cache: npm
3232
node-version-file: '.nvmrc'
@@ -35,19 +35,16 @@ jobs:
3535
run: npm ci
3636

3737
- name: Build Marp slide deck
38-
run: CHROME_PATH=$(npx @puppeteer/browsers install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build
38+
run: CHROME_PATH=$(npx -y @puppeteer/browsers@latest install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build
3939
env:
4040
# Please update URL if you want to use custom domain
4141
URL: https://${{ github.event.repository.owner.name }}.github.io/${{ github.event.repository.name }}
4242

43-
# Recommend to set lang for your deck to get better rendering for Open Graph image
44-
LANG: en-US
45-
4643
- name: Upload page artifacts
47-
uses: actions/upload-pages-artifact@v1
44+
uses: actions/upload-pages-artifact@v3
4845
with:
4946
path: public
5047

5148
- name: Deploy to GitHub Pages
5249
id: deployment
53-
uses: actions/deploy-pages@main
50+
uses: actions/deploy-pages@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.16.1
1+
20.11.1

PITCHME.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
marp: true
3+
lang: en-US
34
title: Marp CLI example
45
description: Hosting Marp slide deck on the web
56
theme: uncover

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build]
22
publish = "public"
3-
command = "CHROME_PATH=$(npx @puppeteer/browsers install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build"
3+
command = "CHROME_PATH=$(npx -y @puppeteer/browsers@latest install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') npm run build"

0 commit comments

Comments
 (0)