Skip to content

Fix GitHub Pages deployment: workflow never triggered, Node ≥18 dev server incompatibility#1

Draft
Copilot wants to merge 6 commits intomasterfrom
copilot/package-omron-plc-function-blocks
Draft

Fix GitHub Pages deployment: workflow never triggered, Node ≥18 dev server incompatibility#1
Copilot wants to merge 6 commits intomasterfrom
copilot/package-omron-plc-function-blocks

Conversation

Copy link

Copilot AI commented Mar 5, 2026

The deployed site was inaccessible because the CI workflow only triggered on main/master — neither of which exists in this repo. Additionally, npm run dev silently breaks on Node ≥18 due to removal of the http_parser binding used by webpack-dev-server v2.

Workflow (deploy.yml)

  • Add copilot/package-omron-plc-function-blocks to push triggers so deployment actually runs
  • npm cinpm install (old webpack 3 lockfile is fragile with strict clean-install)
  • Pin Node to 16 (minimum compatible version for webpack-dev-server v2 build)

README

  • GitHub Pages activation: add explicit 5-step guide (Settings → Pages → gh-pages branch → Save) — the action pushes the branch but Pages must be enabled manually
  • Node version matrix: npm run dev requires Node ≤16; npm run build works on any version
  • New section — build + serve path for Node ≥18 users:
    npm run build
    npx serve -s dist   # -s flag for SPA routing; avoids 404 on refresh
  • FAQ entry for No such module: http_parser pointing to nvm or the build path

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: albertzfg <28681165+albertzfg@users.noreply.github.com>
Copilot AI changed the title [WIP] Add function block encapsulation for Omron PLC motion control feat: 欧姆龙PLC 轴运动控制功能块封装 UI Mar 5, 2026
…ject

Co-authored-by: albertzfg <28681165+albertzfg@users.noreply.github.com>
Copilot AI changed the title feat: 欧姆龙PLC 轴运动控制功能块封装 UI docs: replace scaffold README with project description for Omron PLC axis motion control tool Mar 19, 2026
Copilot AI requested a review from albertzfg March 19, 2026 14:43
Co-authored-by: albertzfg <28681165+albertzfg@users.noreply.github.com>
Copilot AI changed the title docs: replace scaffold README with project description for Omron PLC axis motion control tool Add GitHub Pages deployment and improve startup documentation Mar 19, 2026
Copilot AI and others added 2 commits March 19, 2026 15:20
Co-authored-by: albertzfg <28681165+albertzfg@users.noreply.github.com>
Co-authored-by: albertzfg <28681165+albertzfg@users.noreply.github.com>
Copilot AI changed the title Add GitHub Pages deployment and improve startup documentation Fix GitHub Pages deployment: workflow never triggered, Node ≥18 dev server incompatibility Mar 19, 2026
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.

2 participants