We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 954e34e + b1a3536 commit fe22c21Copy full SHA for fe22c21
.github/workflows/format.yml
@@ -0,0 +1,23 @@
1
+name: Format
2
+on:
3
+ pull_request:
4
+ branches: [master]
5
+jobs:
6
+ format:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ with:
11
+ ref: ${{ github.head_ref }}
12
+ - uses: actions/setup-node@v1
13
14
+ node-version: "12.x"
15
+ - name: Format
16
+ run: |
17
+ yarn
18
+ yarn format
19
+ - name: Commit changes
20
+ uses: stefanzweifel/[email protected]
21
22
+ commit_message: Apply formatting changes
23
+ branch: ${{ github.head_ref }}
package.json
@@ -10,6 +10,7 @@
"test": "lerna run test",
"lint": "lerna run lint",
"prettier": "lerna run prettier",
+ "format": "prettier --write",
"doc": "jsdoc -c jsdoc.json"
},
"repository": {
0 commit comments