Skip to content

Commit 8909852

Browse files
committed
build: tweaks
1 parent 9620209 commit 8909852

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
git push origin ${{ github.head_ref }}
3030
3131
release:
32-
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') && !startsWith(github.event.head_commit.message, 'docs:') && !startsWith(github.event.head_commit.message, 'ci:') }}
32+
if: |
33+
!startsWith(github.event.head_commit.message, 'chore(release):') &&
34+
!startsWith(github.event.head_commit.message, 'docs:') &&
35+
!startsWith(github.event.head_commit.message, 'ci:')
3336
needs: [contributors]
3437
runs-on: ubuntu-latest
3538
steps:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@
8585
]
8686
},
8787
"nano-staged": {
88-
"*.js,!*.min.js,": [
89-
"prettier-standard"
88+
"*.js,!*.min.js": [
89+
"prettier-standard",
90+
"standard --fix"
9091
],
9192
"*.md": [
9293
"standard-markdown"

scripts/postinstall.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ try {
1515
const $ = load(body)
1616

1717
const userAgents = $('tbody .useragent')
18-
.map(function () {
19-
return $(this).text()
20-
})
18+
.map((_, element) => $(element).text())
2119
.get()
2220

2321
await writeJsonFile('index.json', userAgents)

0 commit comments

Comments
 (0)