Skip to content

Commit ed5bb71

Browse files
fixes
1 parent d2c7957 commit ed5bb71

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/check-format.yml renamed to .github/workflows/presubmit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check code format
1+
name: Check code before submitting
22

33
permissions: read-all
44

@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
check-format:
13-
runs-on: ubuntu-latest # You can also use 'macos-latest' or 'windows-latest'
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Check out repository
@@ -29,8 +29,9 @@ jobs:
2929

3030
- name: Run format check
3131
run: npm run check-format
32+
3233
check-docs:
33-
runs-on: ubuntu-latest # You can also use 'macos-latest' or 'windows-latest'
34+
runs-on: ubuntu-latest
3435

3536
steps:
3637
- name: Check out repository
@@ -49,6 +50,7 @@ jobs:
4950

5051
- name: Generate documents
5152
run: npm run generate-docs
53+
5254
- name: Check if autogenerated docs differ
5355
run: |
5456
diff_file=$(mktemp doc_diff_XXXXXX)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build": "tsc && node --experimental-strip-types scripts/post-build.ts",
1212
"format": "eslint --cache --fix . ;prettier --write --cache .",
1313
"check-format": "eslint --cache .; prettier --check --cache .;",
14-
"generate-docs": "node --experimental-strip-types scripts/generate-docs.ts",
14+
"generate-docs": "npm run build && node --experimental-strip-types scripts/generate-docs.ts",
1515
"start": "npm run build && node build/src/index.js",
1616
"start-debug": "DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/index.js",
1717
"test": "npm run build && npx puppeteer browsers install chrome@latest && PUPPETEER_CHROME_VERSION=latest node --test-force-exit --test 'build/tests/**/*.test.js'",

0 commit comments

Comments
 (0)