Skip to content

Commit 3c3b13c

Browse files
chore: upgrade Node.js and Bun workflow configurations
- Update GitHub workflows to use Node.js 20 - Replace npm test with bun test in CI pipeline - Add Bun setup for testing and quality checks - Update publish workflow with npm pkg fix and automation token
1 parent 9918df9 commit 3c3b13c

File tree

4 files changed

+30
-21
lines changed

4 files changed

+30
-21
lines changed

.github/workflows/bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node.js
2020
uses: actions/setup-node@v2
2121
with:
22-
node-version: 18
22+
node-version: 20
2323
cache: "npm"
2424
- name: Install dependencies
2525
uses: bahmutov/npm-install@v1

.github/workflows/main.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: Checkout repo
1717
uses: actions/checkout@v2
1818

19-
- name: Use Node 18
19+
- name: Use Node 20
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: 18
22+
node-version: 20
2323

2424
- name: Install dependencies
2525
uses: bahmutov/npm-install@v1
@@ -34,10 +34,10 @@ jobs:
3434
- name: Checkout repo
3535
uses: actions/checkout@v2
3636

37-
- name: Use Node 18
37+
- name: Use Node 20
3838
uses: actions/setup-node@v1
3939
with:
40-
node-version: 18
40+
node-version: 20
4141

4242
- name: Install dependencies
4343
uses: bahmutov/npm-install@v1
@@ -52,34 +52,39 @@ jobs:
5252
- name: Checkout repo
5353
uses: actions/checkout@v2
5454

55-
- name: Use Node 18
56-
uses: actions/setup-node@v1
55+
- name: Setup Bun
56+
uses: oven-sh/setup-bun@v1
5757
with:
58-
node-version: 18
58+
bun-version: latest
5959

6060
- name: Install dependencies
6161
uses: bahmutov/npm-install@v1
6262

6363
- name: Test
64-
run: npm run test -- --ci --coverage --maxWorkers=2
64+
run: bun test
6565

66-
lint:
67-
name: Linter
66+
quality:
67+
name: Code Quality
6868
runs-on: ubuntu-latest
6969
steps:
7070
- name: Checkout repo
7171
uses: actions/checkout@v2
7272

73-
- name: Use Node 18
73+
- name: Setup Bun
74+
uses: oven-sh/setup-bun@v1
75+
with:
76+
bun-version: latest
77+
78+
- name: Use Node 20
7479
uses: actions/setup-node@v1
7580
with:
76-
node-version: 18
81+
node-version: 20
7782

7883
- name: Install dependencies
7984
uses: bahmutov/npm-install@v1
8085

81-
- name: Build
82-
run: npm run build
86+
- name: Check exports
87+
run: npm run exports
8388

84-
- name: Lint
85-
run: npm run lint
89+
- name: Quality check
90+
run: npm run quality

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-node@v1
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm install
1717
- run: npm run build
18-
- run: npm publish --access public
18+
- name: Fix package.json format
19+
run: npm pkg fix
20+
- name: Publish to npm
21+
run: npm publish --access public
1922
env:
20-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"typecheck": "tsc --noEmit",
1818
"quality": "biome check .",
1919
"quality:fix": "biome check . --write --unsafe",
20-
"exports": "bun run ./scripts/exports.ts"
20+
"exports": "bun run ./scripts/exports.ts",
21+
"test": "bun test"
2122
},
2223
"keywords": [
2324
"remix",

0 commit comments

Comments
 (0)