File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 # NOTE: heavy node.js is used only to run markdownlint - the same tool as in my editor (Visual Studio Code)
1111
12- # source: https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions
13- - name : add node.js deb source
14- run : |
15- sudo apt-get install -y ca-certificates curl gnupg && sudo mkdir -p /etc/apt/keyrings \
16- && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
17- && NODE_MAJOR=20 \
18- && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
19- - name : install node.js
20- run : sudo apt-get update && sudo apt-get install nodejs -y
12+ - name : install node.js (current LTS)
13+ uses : actions/setup-node@v4
14+ with :
15+ node-version : ' lts/*'
2116
2217 - name : install markdownlint-cli
2318 run : sudo npm install -g markdownlint-cli
You can’t perform that action at this time.
0 commit comments