From 1ccaeae22cc63753c69c917a9889c0daa7cb9159 Mon Sep 17 00:00:00 2001
From: gotbadger
Date: Fri, 17 Nov 2023 11:43:24 +0000
Subject: [PATCH] ci: fix doc check
---
.github/workflows/command_doc_check.yml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.github/workflows/command_doc_check.yml b/.github/workflows/command_doc_check.yml
index 13c246aab..53a4826e9 100644
--- a/.github/workflows/command_doc_check.yml
+++ b/.github/workflows/command_doc_check.yml
@@ -22,5 +22,20 @@ jobs:
go-version: 1.21
- name: Generate command docs
run: go run ./scripts/gen-doc-yaml.go
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: "16"
+ - name: Cache dependencies
+ uses: actions/cache@v3
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+ - name: Install dependencies
+ run: npm ci
+ - name: prettier
+ run: npm run prettier:fix
- name: Check no uncommited changes
run: git diff --exit-code