Skip to content

Commit fe22c21

Browse files
authored
Merge pull request #73 from lumenCodes/lumencodes-feature-70
Created a github action file
2 parents 954e34e + b1a3536 commit fe22c21

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/format.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
22+
commit_message: Apply formatting changes
23+
branch: ${{ github.head_ref }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test": "lerna run test",
1111
"lint": "lerna run lint",
1212
"prettier": "lerna run prettier",
13+
"format": "prettier --write",
1314
"doc": "jsdoc -c jsdoc.json"
1415
},
1516
"repository": {

0 commit comments

Comments
 (0)