Skip to content

Commit

Permalink
perf: tech release
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 30, 2024
1 parent 740032a commit 3c83168
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'npm'
- run: npm ci
- run: npm run build
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: 'npm'
- uses: actions/download-artifact@v4
with:
Expand All @@ -68,11 +68,11 @@ jobs:
NPM_PROVENANCE: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_BRANCH: 'main'
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
run: echo 'disabled' && exit 0 # npx zx-semrel
GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ vars.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }}
run: npx zx-semrel

pr:
if: github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:docs": "typedoc --options src/main/typedoc",
"test": "concurrently 'npm:test:*'",
"test:target": "git diff --exit-code --quiet || (echo 'Uncommitted changes' && exit 1)",
"test:lint": "oxlint src",
"test:lint": "oxlint -c src/test/lint/.oxlintrc.json src",
"test:unit": "vitest run --dir src/test/ts --coverage.enabled --coverage.include src/main/ts --coverage.reportsDirectory target/coverage --coverage.thresholds.100",
"test:jsr": "jsr publish --dry-run",
"test:audit": "npm audit",
Expand Down
5 changes: 1 addition & 4 deletions src/main/ts/envapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ const formatValue = (v: string): string => {
export const stringify = (env: NodeJS.ProcessEnv): string =>
Object.entries(env).map(([k, v]) => `${k}=${formatValue(v || '')}`).join('\n')

const _load = (
read: (file: string) => string,
...files: string[]
): NodeJS.ProcessEnv =>
const _load = (read: (file: string) => string, ...files: string[]): NodeJS.ProcessEnv =>
files
.reverse()
.reduce((m, f) => Object.assign(m, parse(read(path.resolve(f)))), {})
Expand Down
7 changes: 7 additions & 0 deletions src/test/lint/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../../../node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "typescript", "unicorn", "vitest"],
"settings": {},
"rules": {},
"overrides": []
}

0 comments on commit 3c83168

Please sign in to comment.