Skip to content

Add GitHub Actions workflow for NodeJS with Webpack - #2705

Draft
Aranmobinarann wants to merge 2 commits into
rainbow-me:mainfrom
Aranmobinarann:main
Draft

Aranmobinarann wants to merge 2 commits into
rainbow-me:mainfrom
Aranmobinarann:main

Conversation

@Aranmobinarann

Copy link
Copy Markdown

✅ توضیح Pull Request

📋 خلاصه تغییرات

عنوان: اضافه کردن Workflow برای Webpack Build
نوع: ✨ Feature (ویژگی جدید)
فایل تغییر کرده: .github/workflows/webpack.yml (جدید)


🎯 هدف

اتوماتیک سازی فرآیند ساخت و کمپایل پروژه با استفاده از Webpack به صورت خودکار هر وقت کد در شاخه main تغییر کند یا PR ایجاد شود.


📝 تفاصیل فایل جدید

Workflow: webpack.yml

وقایع (Events) که Workflow را فعال می‌کند:

  • ✅ Push به شاخه main
  • ✅ ایجاد یا بروزرسانی Pull Request به main

کاری که انجام می‌دهد:

1. ✓ محیط: Ubuntu (آخرین نسخه)
2. ✓ نسخه‌های Node.js: 18.x, 20.x, 22.x (تست سازگاری)
3. ✓ مراحل:
   • دانلود کد (checkout)
   • نصب Node.js مناسب
   • نصب وابستگی‌ها (npm install)
   • ساخت پروژه (npx webpack)

@changeset-bot

changeset-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7cf5955

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Oct 7, 2026

Copy link
Copy Markdown

@Aranmobinarann is attempting to deploy a commit to the rainbowdotme Team on Vercel.

A member of the Team first needs to authorize it.

@Aranmobinarann
Aranmobinarann marked this pull request as draft October 7, 2026 13:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 25a3ba1. Configure here.

- name: Build
run: |
npm install
npx webpack

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Webpack build step cannot succeed

High Severity

The job runs npx webpack, but this repo has no webpack or webpack-cli dependency, no webpack config, and no root bundle entry. Packages build with esbuild through pnpm build. The workflow fails on every push and PR and never checks the real build.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 25a3ba1. Configure here.


- name: Build
run: |
npm install

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install uses wrong package manager

High Severity

npm install cannot reproduce this monorepo. The repo pins pnpm@10.33.3, uses pnpm-workspace.yaml, and only has pnpm-lock.yaml. npm skips workspace packages and resolves unlocked versions, so the tree does not match local or ci.yml installs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 25a3ba1. Configure here.


strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node matrix ignores engine requirement

Medium Severity

The matrix runs Node 18.x, 20.x, and 22.x, while engines.node requires >=24 and every other workflow uses Node 24. Those legs test unsupported runtimes and can hit engine warnings or install and runtime failures from current dependencies.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 25a3ba1. Configure here.

@Aranmobinarann

Copy link
Copy Markdown
Author

Summary

This PR adds a GitHub Actions workflow to run a webpack build on pushes and pull requests targeting main.

The workflow validates compatibility across Node.js 18.x, 20.x, and 22.x to catch build regressions early and ensure the project still compiles cleanly across supported runtime versions.

Why

This helps prevent broken builds from being merged unnoticed and gives faster feedback during CI when a change affects the build toolchain or project configuration.

Changes

  • Added .github/workflows/webpack.yml
  • Runs on:
    • push to main
    • pull requests to main
  • Uses a Node.js matrix for 18.x, 20.x, and 22.x
  • Installs dependencies and runs npx webpack

Validation

  • CI will verify the project builds successfully across the supported Node.js matrix.

Notes

A changeset was added because this repo requires a version bump entry for package changes.

This workflow installs Deno and runs linting and tests on push and pull request events to the main branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant