Skip to content

Commit 8398ecf

Browse files
committed
use actions/setup-node@v1
1 parent 1803a67 commit 8398ecf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/format_prettier.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
on:
32
push:
43
branches: [dev]
@@ -10,14 +9,12 @@ jobs:
109
runs-on: ubuntu-latest
1110
steps:
1211
- uses: actions/checkout@v2
13-
14-
- name: Install
15-
run: npm install
16-
env:
17-
CI: true
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
1815

1916
- name: Run prettier
20-
run: npm run prettier --write 'src/**/*.{css,js,vue}'
17+
run: npm run prettier --write 'src/**/*.{css,js,jsx}'
2118

2219
- uses: stefanzweifel/git-auto-commit-action@v4
2320
with:

0 commit comments

Comments
 (0)