Skip to content

Commit 98aadba

Browse files
Update node.js.yml
1 parent 18bbffb commit 98aadba

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

.github/workflows/node.js.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3-
41
name: Node.js CI
52

63
on:
74
push:
8-
branches: [ "main" ]
5+
branches: ["main"]
96
pull_request:
10-
branches: [ "main" ]
7+
branches: ["main"]
118

129
jobs:
1310
build:
1411
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
node-version: [22.x]
1812

1913
steps:
20-
- uses: actions/checkout@v4
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'npm'
26-
- run: npm ci
27-
- run: npm run build
28-
- name: Upload GitHub Pages artifact
29-
uses: actions/upload-pages-artifact@v3
30-
with:
31-
path: ./dist
14+
- uses: actions/checkout@v4
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: latest
19+
- run: bun install --frozen-lockfile
20+
- run: bun run build
21+
- name: Upload GitHub Pages artifact
22+
uses: actions/upload-pages-artifact@v3
23+
with:
24+
path: ./dist
3225

3326
deploy:
3427
needs: build

0 commit comments

Comments
 (0)