Skip to content

Commit

Permalink
fix prettier version
Browse files Browse the repository at this point in the history
  • Loading branch information
namachan10777 committed May 29, 2024
1 parent fb70380 commit f6e2963
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 5,357 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ on:
pull_request:

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install prettier by pnpm
run: pnpm install --frozen-lockfile
- name: Check format
run: pnpm run lint:fmt

lint:
strategy:
matrix:
Expand All @@ -15,10 +30,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install linter
run: npm install -g prettier renovate@${{ matrix.renovate_version }}
run: npm install -g renovate@${{ matrix.renovate_version }}

- name: Lint renovate config
run: renovate-config-validator default.json && renovate-config-validator *.json5

- name: Check format
run: prettier --check .
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index.js",
"scripts": {
"lint:fmt": "prettier --check .",
"lint:renovate": "renovate-config-validator default.json && renovate-config-validator *.json5",
"lint": "run-p lint:*",
"fix:fmt": "prettier -w .",
"fix": "run-p fix:*"
Expand All @@ -17,7 +16,6 @@
"license": "MIT",
"devDependencies": {
"npm-run-all2": "^6.0.0",
"prettier": "^3",
"renovate": "^37"
"prettier": "^3.2.5"
}
}
Loading

0 comments on commit f6e2963

Please sign in to comment.