Skip to content

Commit ba74577

Browse files
committed
ci: fix npm 403 error in testing workflow by adding Node.js setup and removing sudo from npm install
1 parent 3fe2353 commit ba74577

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
1924
- name: Install dependencies
2025
run: |
2126
sudo apt-get update
2227
sudo apt-get install -y yamllint
23-
sudo npm install -g markdownlint-cli
28+
npm install -g markdownlint-cli
2429
2530
- name: Run linting
2631
run: ./script/lint

0 commit comments

Comments
 (0)