Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 243d358

Browse files
author
Jacob
committed
changes per PR discussion moving linting/prettier to same job
1 parent c01c343 commit 243d358

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Check Overrides
3939
run: npm run export:overrides
4040

41+
- name: Run Prettier
42+
run: npm run prettier:md
43+
4144
- name: Run Type Checking
4245
run: tsc
4346

.github/workflows/typechecks.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@ name: Tests, Linter & Typecheck
33
on: pull_request
44

55
jobs:
6-
lint:
7-
name: 'Linting Markdown'
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout Repo
11-
uses: actions/checkout@v2
12-
13-
- name: Use Node.js 16.7
14-
uses: actions/setup-node@v2
15-
with:
16-
node-version: 16.7
17-
18-
- run: npm run prettier:md
196
test:
207
name: 'Typechecking'
218
runs-on: ubuntu-latest
@@ -39,5 +26,8 @@ jobs:
3926
*/*/node_modules
4027
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4128

29+
- name: Run Prettier
30+
run: npm run prettier:md
31+
4232
- name: Run Type Checking
4333
run: tsc

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"scripts": {
1414
"export:docs": "node -r esbuild-register export/docs.ts",
1515
"export:overrides": "node -r esbuild-register export/overrides.ts",
16-
"prettier:md": "prettier --write --parser markdown '**/*.md' --ignore-path ./LICENSE.md",
16+
"prettier:md": "prettier --check --parser markdown '**/*.md' --ignore-path ./LICENSE.md",
17+
"prettier": "prettier --write --parser markdown '**/*.md' --ignore-path ./LICENSE.md",
1718
"test": "tsc"
1819
},
1920
"author": "Cloudflare Workers Team <[email protected]> (https://workers.cloudflare.com)",

0 commit comments

Comments
 (0)