Skip to content

Commit 8883553

Browse files
authored
Create webpack.yml
1 parent 73d8f59 commit 8883553

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/webpack.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: NodeJS with Webpack
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 22.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: npm install
27+
working-directory: ./web
28+
29+
- name: Build with Webpack
30+
run: npm run build
31+
working-directory: ./web
32+
33+
- name: Upload build artifacts
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: build-artifacts
37+
path: ./web/dist

0 commit comments

Comments
 (0)