Skip to content

Commit c541d78

Browse files
authored
ci(.github/workflows/autofix): add 'autofix.ci' workflow for automatic prettier formatting (#340)
1 parent 8e484fa commit c541d78

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: autofix.ci
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
autofix:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
- run: corepack enable
22+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
23+
with:
24+
node-version-file: '.nvmrc'
25+
cache: 'yarn'
26+
- run: yarn install
27+
- run: yarn prettier --write .
28+
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8

0 commit comments

Comments
 (0)