From d922ea2dfed00afab50bb0aa795680740af5d260 Mon Sep 17 00:00:00 2001 From: Zyntro-Agents Date: Fri, 4 Sep 2026 03:50:47 +0700 Subject: [PATCH 1/2] Create webpack.yml Signed-off-by: Zyntro-Agents --- .github/workflows/webpack.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/webpack.yml diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 00000000000..9626ff6d358 --- /dev/null +++ b/.github/workflows/webpack.yml @@ -0,0 +1,28 @@ +name: NodeJS with Webpack + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npx webpack From b685f16fa26a8dd447dbe175eeb22db4e12ef22c Mon Sep 17 00:00:00 2001 From: Zyntro-Agents Date: Sat, 5 Sep 2026 16:10:12 +0700 Subject: [PATCH 2/2] Update webpack.yml --- .github/workflows/webpack.yml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index 9626ff6d358..c48f902153a 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -1,28 +1,31 @@ -name: NodeJS with Webpack +name: Webpack Build & CI on: push: - branches: [ "main" ] + branches: [main] pull_request: - branches: [ "main" ] + branches: [main] jobs: build: + name: Build & Bundle runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - steps: - - uses: actions/checkout@v4 + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install Dependencies + run: npm ci - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} + - name: Build Project + run: npm run build - - name: Build - run: | - npm install - npx webpack + - name: Run Webpack Bundle + run: npm run webpack