Skip to content

Commit 3c83168

Browse files
committed
perf: tech release
1 parent 740032a commit 3c83168

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- name: Use Node.js 20.x
10+
- name: Use Node.js 22.x
1111
uses: actions/setup-node@v4
1212
with:
13-
node-version: 20.x
13+
node-version: 22.x
1414
cache: 'npm'
1515
- run: npm ci
1616
- run: npm run build
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Node.js
4343
uses: actions/setup-node@v4
4444
with:
45-
node-version: 20
45+
node-version: 22
4646
cache: 'npm'
4747
- uses: actions/download-artifact@v4
4848
with:
@@ -68,11 +68,11 @@ jobs:
6868
NPM_PROVENANCE: true
6969
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070
GIT_BRANCH: 'main'
71-
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
72-
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
73-
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
74-
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
75-
run: echo 'disabled' && exit 0 # npx zx-semrel
71+
GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME }}
72+
GIT_AUTHOR_EMAIL: ${{ vars.GIT_AUTHOR_EMAIL }}
73+
GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME }}
74+
GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }}
75+
run: npx zx-semrel
7676

7777
pr:
7878
if: github.event_name == 'pull_request'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"build:docs": "typedoc --options src/main/typedoc",
2929
"test": "concurrently 'npm:test:*'",
3030
"test:target": "git diff --exit-code --quiet || (echo 'Uncommitted changes' && exit 1)",
31-
"test:lint": "oxlint src",
31+
"test:lint": "oxlint -c src/test/lint/.oxlintrc.json src",
3232
"test:unit": "vitest run --dir src/test/ts --coverage.enabled --coverage.include src/main/ts --coverage.reportsDirectory target/coverage --coverage.thresholds.100",
3333
"test:jsr": "jsr publish --dry-run",
3434
"test:audit": "npm audit",

src/main/ts/envapi.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ const formatValue = (v: string): string => {
7777
export const stringify = (env: NodeJS.ProcessEnv): string =>
7878
Object.entries(env).map(([k, v]) => `${k}=${formatValue(v || '')}`).join('\n')
7979

80-
const _load = (
81-
read: (file: string) => string,
82-
...files: string[]
83-
): NodeJS.ProcessEnv =>
80+
const _load = (read: (file: string) => string, ...files: string[]): NodeJS.ProcessEnv =>
8481
files
8582
.reverse()
8683
.reduce((m, f) => Object.assign(m, parse(read(path.resolve(f)))), {})

src/test/lint/.oxlintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "../../../node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["import", "typescript", "unicorn", "vitest"],
4+
"settings": {},
5+
"rules": {},
6+
"overrides": []
7+
}

0 commit comments

Comments
 (0)