Skip to content

Commit da804ef

Browse files
committed
Add a Node Workflow for Webpack Build Production
1 parent 543b6ee commit da804ef

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Webpack Build Production
2+
description: 'This workflow triggers a Node.js build on push or manually: it reads the Node version from Build/.nvmrc, checks out the code, installs dependencies via npm ci, and runs the production Webpack build.'
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js with .nvmrc File
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: 'Build/.nvmrc'
23+
24+
- name: Install Dependencies from package-lock.json
25+
working-directory: ./Build
26+
run: npm ci
27+
28+
- name: Run Webpack Build for Production
29+
working-directory: ./Build
30+
run: npm run build

0 commit comments

Comments
 (0)