Skip to content

Commit c9fe418

Browse files
fix: lint error and workflows/release.yml
1 parent 3377aeb commit c9fe418

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
with:
1111
fetch-depth: 0
1212
- uses: ./.github/actions/prepare
13-
- run: git config user.name "${{ GITHUB_ACTOR }}"
14-
- run: git config user.email "${{ GITHUB_ACTOR }}@users.noreply.github.com"
13+
- run: git config user.name "${GITHUB_ACTOR}"
14+
- run: git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
1515
- env:
1616
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1717
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
1818
- env:
1919
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2020
run: |
21-
if git log --format=%B -n 1 | grep -q 'release v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'; then
21+
if git log --format=%B -n 1 | grep -q 'release v[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'; then
2222
pnpm release-it --no-increment --verbose
2323
fi
2424

scripts/npm-publish-tool.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

3-
import fs from 'fs'
43
import { execSync } from 'child_process'
4+
import fs from 'fs'
55

66
/**
77
* Script to create a release commit for npm-publish-tool

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"fixtures/**/*.js",
2626
"tests/**/*.js",
2727
"utils/**/*.js",
28-
"utils/**/*.test.js"
28+
"utils/**/*.test.js",
29+
"scripts/**/*.mjs"
2930
]
3031
}

0 commit comments

Comments
 (0)