Skip to content

Commit 88bd9a7

Browse files
authored
refactor!: ESM-only (#794)
1 parent f18be58 commit 88bd9a7

8 files changed

Lines changed: 2193 additions & 4502 deletions

File tree

.github/workflows/nodejs-test.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
env:
1010
CI: true
1111
FORCE_COLOR: 2
12-
NODE_COV: lts/* # The Node.js version to run coveralls on
12+
13+
permissions:
14+
contents: read
1315

1416
jobs:
1517
lint:
@@ -31,9 +33,8 @@ jobs:
3133
fail-fast: false
3234
matrix:
3335
node:
34-
- 16
35-
- 18
36-
- 20
36+
- 22
37+
- 24
3738
- lts/*
3839

3940
steps:
@@ -45,18 +46,4 @@ jobs:
4546
cache: npm
4647
- run: npm ci
4748
- run: npm run build --if-present
48-
49-
- name: Run Jest
50-
run: npm run test:jest
51-
if: matrix.node != env.NODE_COV
52-
53-
- name: Run Jest with coverage
54-
run: npm run test:jest -- --coverage
55-
if: matrix.node == env.NODE_COV
56-
57-
- name: Run Coveralls
58-
uses: coverallsapp/github-action@v2.3.7
59-
if: matrix.node == env.NODE_COV
60-
continue-on-error: true
61-
with:
62-
github-token: "${{ secrets.GITHUB_TOKEN }}"
49+
- run: npm run test:vi

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
19+
with:
20+
node-version: lts/*
21+
registry-url: https://registry.npmjs.org
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Publish package to npm
27+
run: npm publish --provenance --access public

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules/
22
coverage/
3-
lib/
3+
dist/

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

0 commit comments

Comments
 (0)