Skip to content

Commit 7d5d1f1

Browse files
committed
Use bun in GitHub Actions
1 parent 13eb129 commit 7d5d1f1

2 files changed

Lines changed: 38 additions & 31 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,11 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34-
- name: Setup Node
35-
uses: actions/setup-node@v4
36-
with:
37-
node-version-file: 'package.json'
34+
- uses: oven-sh/setup-bun@v2
3835
- name: Install dependencies
39-
run: |
40-
corepack enable
41-
yarn install
36+
run: bun install
4237
- name: Build with Next.js
43-
run: yarn build
38+
run: bun run build
4439
- name: Upload artifact
4540
uses: actions/upload-pages-artifact@v2
4641
with:

tsconfig.json

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11
{
2-
"compilerOptions": {
3-
"allowJs": true,
4-
"esModuleInterop": true,
5-
"incremental": true,
6-
"isolatedModules": true,
7-
"jsx": "preserve",
8-
"jsxImportSource": "@mimorisuzuko/yuuka",
9-
"lib": ["dom", "dom.iterable", "esnext"],
10-
"module": "esnext",
11-
"moduleResolution": "bundler",
12-
"noEmit": true,
13-
"plugins": [
14-
{
15-
"name": "next"
16-
}
17-
],
18-
"resolveJsonModule": true,
19-
"skipLibCheck": true,
20-
"strict": true,
21-
"target": "ES2017"
22-
},
23-
"exclude": ["node_modules"],
24-
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", "docs/types/**/*.ts"]
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"esModuleInterop": true,
5+
"incremental": true,
6+
"isolatedModules": true,
7+
"jsx": "preserve",
8+
"jsxImportSource": "@mimorisuzuko/yuuka",
9+
"lib": [
10+
"dom",
11+
"dom.iterable",
12+
"esnext"
13+
],
14+
"module": "esnext",
15+
"moduleResolution": "bundler",
16+
"noEmit": true,
17+
"plugins": [
18+
{
19+
"name": "next"
20+
}
21+
],
22+
"resolveJsonModule": true,
23+
"skipLibCheck": true,
24+
"strict": true,
25+
"target": "ES2017"
26+
},
27+
"exclude": [
28+
"node_modules"
29+
],
30+
"include": [
31+
"**/*.ts",
32+
"**/*.tsx",
33+
"docs/types/**/*.ts",
34+
"next-env.d.ts",
35+
".next/types/**/*.ts"
36+
]
2537
}

0 commit comments

Comments
 (0)