ci(docs): replace apt-get nodejs/npm with actions/setup-node@v4

apt-get pulled ~250 Ubuntu node-* packages (~20+ min, flaky-network on
sporel-meta runs #206 cancelled, #209 took >15min just downloading).
Switch to actions/setup-node@v4 — single tarball, ~30s.

Note: sporel-engine pins this workflow to a specific SHA so it's
unaffected; sporel-meta uses @master and benefits immediately.
This commit is contained in:
Axel Meyer
2026-05-04 17:26:24 +02:00
parent 63671c7cea
commit 7c4eb9e3b2

View File

@@ -21,11 +21,13 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Node + markdownlint-cli2 - name: Setup Node
run: | uses: actions/setup-node@v4
sudo apt-get update -qq with:
sudo apt-get install -y nodejs npm node-version: '20'
sudo npm install -g markdownlint-cli2
- name: Install markdownlint-cli2
run: npm install -g markdownlint-cli2
- name: Run markdownlint - name: Run markdownlint
run: | run: |