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:
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user