Skip to content

Commit 7d379c8

Browse files
committed
actualized github workflow for markdownlint - modern node setup action
1 parent 564dae5 commit 7d379c8

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/markdownlint.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@ jobs:
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

0 commit comments

Comments
 (0)