Skip to content

Commit 74bc1a1

Browse files
Add GitHub Actions workflow for Node.js with Webpack
Signed-off-by: ๐Ž๐ง๐ž ๐…๐ข๐ง๐ž ๐’๐ญ๐š๐ซ๐ฌ๐ญ๐ฎ๐Ÿ๐Ÿ <onefinestarstuff@gmail.com>
1 parent b624cfb commit 74bc1a1

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: Build
26+
run: |
27+
npm install
28+
npx webpack

0 commit comments

Comments
ย (0)