Skip to content

Commit e18d042

Browse files
committed
ci: add linter step
1 parent a9590b7 commit e18d042

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ jobs:
88
name: Release
99
runs-on: ubuntu-latest
1010
permissions:
11-
contents: write
12-
issues: write
13-
pull-requests: write
14-
id-token: write
11+
contents: write # for Creating tags and releases
12+
issues: write # for Editing issue content, Commenting on issues, Closing issues
13+
pull-requests: write # for Commenting on PRs, Merging or closing PRs
14+
id-token: write # for publishing to NPM
15+
# packages: write # for publishing to GitHub Packages
1516
steps:
1617
- name: Checkout code
1718
uses: actions/checkout@v4
@@ -25,6 +26,9 @@ jobs:
2526
- name: Install dependencies
2627
run: npm ci
2728

29+
- name: Run linter
30+
run: npm run lint
31+
2832
- name: Run tests
2933
run: npm test
3034

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
}
4141
},
4242
"scripts": {
43+
"lint": "eslint --flag unstable_native_nodejs_ts_config",
44+
"lint:fix": "eslint --fix --flag unstable_native_nodejs_ts_config",
4345
"test": "vitest run --coverage",
4446
"test:watch": "vitest --coverage",
4547
"build": "tsup",

0 commit comments

Comments
 (0)