Skip to content

Commit 0e39836

Browse files
committed
Fix lint
1 parent 0f8b774 commit 0e39836

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313

1414
- run: yarn install
1515

16-
- uses: Maggi64/eslint-plus-action@master
16+
- name: Run lint
17+
run: npm run lint:report
18+
continue-on-error: true
19+
20+
- name: Annotate code with linting results
21+
uses: ataylorme/eslint-annotate-action@v3
1722
with:
18-
npmInstall: false
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
report-json: "eslint_report.json"

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ jobs:
2525
git log "$OLD_VERSION"..HEAD --pretty=format:"* %s" > CHANGELOG.md
2626
else
2727
echo "Version $OLD_VERSION hasn't changed, skipping the release"
28-
exit 1
2928
fi
3029
3130
- name: Create a git tag
32-
if: success()
31+
if: steps.version.outputs.version
3332
run: git tag $NEW_VERSION && git push --tags
3433
env:
3534
NEW_VERSION: ${{ steps.version.outputs.version }}
3635

3736
- name: GitHub release
38-
if: success()
37+
if: steps.version.outputs.version
3938
uses: actions/create-release@v1
4039
id: create_release
4140
with:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"scripts": {
3030
"lint": "tsc && eslint \"./src/**/*\"",
3131
"lint:fix": "yarn lint --fix",
32+
"lint:report": "yarn lint --output-file eslint_report.json --format json",
3233
"build": "rm -rf dist && tsc",
3334
"prepublishOnly": "yarn lint && yarn test:check && yarn build",
3435
"prettier": "prettier -w './**/*.ts'",

0 commit comments

Comments
 (0)