Skip to content

Commit 578938b

Browse files
authored
chore: added style fix command
2 parents cf54129 + 3435905 commit 578938b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ jobs:
5353
run: 'npm ci || npm ci'
5454
shell: bash
5555

56-
- name: Lint files
57-
if: startsWith(matrix.os, 'ubuntu')
56+
- name: Lint check
57+
if: startsWith(matrix.os, 'ubuntu') && matrix.version == ''
58+
run: npm run lint
59+
60+
- name: Style check
61+
if: startsWith(matrix.os, 'ubuntu') && matrix.version == ''
5862
run: npm run style-check
5963

6064
- name: Compile sources

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"lint:fix": "npm run lint -- --fix",
4141
"lint": "eslint \"src/**/*.ts\"",
4242
"semantic-release": "semantic-release",
43+
"style-fix": "npx prettier --write \"src/**/*.ts\"",
4344
"style-check": "npx prettylint 'src/**/*.ts'",
4445
"test": "node ./out/test/runTest.js",
4546
"tools:genReadme": "node ./out/tools/generateConfigSectionForReadme.js",

0 commit comments

Comments
 (0)