Fix prettier workflow (#145)
Co-authored-by: Sainan <Sainan@users.noreply.github.com>
This commit is contained in:
parent
0abd531b79
commit
d402cd8ceb
8
.github/workflows/prettier.yml
vendored
8
.github/workflows/prettier.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: Prettier
|
name: Prettier
|
||||||
on:
|
on: [push]
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.2
|
uses: actions/checkout@v4.1.2
|
||||||
@ -13,7 +13,7 @@ jobs:
|
|||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v4.0.2
|
uses: actions/setup-node@v4.0.2
|
||||||
with:
|
with:
|
||||||
node-version: "18.x"
|
node-version: "20.x"
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run prettier
|
- run: npm run prettier
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"Results": [
|
"Results": []
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user