Skip to content

Commit 4487ecf

Browse files
authored
Merge pull request #9 from webdeveric/chore/deps
Update dependencies, configurations, and project setup
2 parents 6b5bb4b + 2bc8877 commit 4487ecf

25 files changed

Lines changed: 4533 additions & 1140 deletions

.eslintrc.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,8 @@
2020
"@typescript-eslint/parser": [".ts", ".mts", ".cts"]
2121
}
2222
},
23-
"rules": {},
24-
"overrides": [
25-
{
26-
"files": ["*.ts"],
27-
"parserOptions": {
28-
"project": ["./tsconfig.json"]
29-
}
30-
},
31-
{
32-
"files": ["./*.{js,cjs,mjs,mts}"],
33-
"parserOptions": {
34-
"project": ["./tsconfig.project-files.json"]
35-
}
36-
}
37-
]
23+
"parserOptions": {
24+
"projectService": true
25+
},
26+
"rules": {}
3827
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @webdeveric

.github/workflows/node.js.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
11
name: Node.js CI
22

3-
on:
4-
push:
5-
branches: ['master']
6-
pull_request:
7-
branches: ['master']
3+
on: [push]
84

95
concurrency:
106
group: ${{ github.workflow }}-${{ github.ref }}
117
cancel-in-progress: true
128

9+
env:
10+
HUSKY: 0
11+
1312
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
node-version: [20.x, 22.x]
13+
ci:
14+
name: Continuous Integration
15+
runs-on: ubuntu-24.04
1916
steps:
20-
- uses: actions/checkout@v4
21-
- uses: pnpm/action-setup@v4
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v4
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Use Node.js
24+
uses: actions/setup-node@v6
2425
with:
25-
node-version: ${{ matrix.node-version }}
26+
node-version-file: '.node-version'
2627
cache: 'pnpm'
28+
2729
- name: Installing dependencies
2830
run: pnpm install --frozen-lockfile
31+
2932
- name: Linting
3033
run: pnpm lint
34+
3135
- name: Type checking
3236
run: pnpm typecheck
37+
3338
- name: Spell check
3439
run: pnpm spellcheck
40+
3541
- name: Testing
3642
run: pnpm coverage
43+
3744
- name: Building
3845
run: pnpm build

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: release
9+
10+
env:
11+
HUSKY: 0
12+
13+
permissions:
14+
contents: read # for checkout
15+
16+
jobs:
17+
release:
18+
name: Release
19+
runs-on: ubuntu-24.04
20+
environment: release
21+
permissions:
22+
contents: write # to be able to publish a GitHub release
23+
issues: write # to be able to comment on released issues
24+
pull-requests: write # to be able to comment on released pull requests
25+
id-token: write # to enable use of OIDC for npm provenance
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v6
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Setup pnpm
33+
uses: pnpm/action-setup@v4
34+
35+
- name: Use Node.js
36+
uses: actions/setup-node@v6
37+
with:
38+
node-version-file: '.node-version'
39+
cache: 'pnpm'
40+
41+
- name: Install latest npm
42+
run: |
43+
npm install -g npm@latest
44+
npm --version
45+
46+
- name: Installing dependencies
47+
run: pnpm install --frozen-lockfile
48+
49+
# https://github.com/pnpm/pnpm/issues/7909
50+
# - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
51+
# run: npm audit signatures
52+
53+
- name: Release
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: pnpm exec semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
npm-debug.log
3+
cache/
34
coverage/
45
private/
56
dist/

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no cspell -- --no-summary --no-progress --language-id commit-msg $1
1+
pnpm exec commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no lint-staged -- --config "$(dirname "$0")/../lint-staged.config.mjs"
1+
pnpm exec lint-staged --relative

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ if [ "$numberOfTsFiles" = "0" ]; then
88
exit 0
99
fi
1010

11-
npm run typecheck
11+
pnpm typecheck

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)