Change order steps
This commit is contained in:
parent
b1746421a3
commit
fb7b58bbae
|
@ -25,6 +25,16 @@ jobs:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Run linters
|
||||||
|
uses: wearerequired/lint-action@v1
|
||||||
|
with:
|
||||||
|
eslint: true
|
||||||
|
prettier: false
|
||||||
|
commit_message: "Fix code style issues with ${linter}"
|
||||||
|
auto_fix: true
|
||||||
|
commit: true
|
||||||
|
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
git_name: "Lint Action"
|
||||||
- name: Save Code Linting Report JSON
|
- name: Save Code Linting Report JSON
|
||||||
# npm script for ESLint
|
# npm script for ESLint
|
||||||
# eslint --output-file eslint_report.json --format json src
|
# eslint --output-file eslint_report.json --format json src
|
||||||
|
@ -37,16 +47,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
report-json: "eslint_report.json"
|
report-json: "eslint_report.json"
|
||||||
- name: Run linters
|
|
||||||
uses: wearerequired/lint-action@v1
|
|
||||||
with:
|
|
||||||
eslint: true
|
|
||||||
prettier: false
|
|
||||||
commit_message: "Fix code style issues with ${linter}"
|
|
||||||
auto_fix: true
|
|
||||||
commit: true
|
|
||||||
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
git_name: "Lint Action"
|
|
||||||
- name: Upload ESLint report
|
- name: Upload ESLint report
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
Reference in New Issue