---
file_type: readme
title: ""Node.js 22 Upgrade Project""
description: ""Upgrade LightSpeed .github from Node.js 20 to Node.js 22 — comprehensive project documentation""
created_date: 2026-07-30
last_updated: "2026-08-25"
status: active
---
Status: 📋 Planning & Documentation Complete — Ready for Review
Timeline: 4 hours over 1–2 days
Risk Level: 🟢 Low
Decision: Awaiting user approval to proceed
This project upgrades the LightSpeed .github control plane from Node.js 20 to Node.js 22 — eliminating active warnings in workflow output, modernising dependencies, and standardising Node versions across all 16 workflows.
- Active warnings in workflow output (Node 20 is outdated)
- Version inconsistency across workflows (mix of 20, 22, 22.22.1, 24)
- EOL timeline — Node 20 ends April 2026 (9 months away)
- Dependency staleness — npm update will modernise 100+ packages
- Already configured —
.nvmrcalready specifies Node 22
- Node 22 is proven stable (LTS since Oct 2024)
- Node 24 is newer; higher risk of breaking changes
- Conservative approach for infrastructure-critical repo
- Still 2.75 years of support remaining (until Oct 2027)
This folder contains comprehensive documentation for planning and executing the upgrade:
.github/projects/active/nodejs-upgrade-2026-q3/
├── README.md ← You are here
├── NODEJS_UPGRADE_PLAN.md ← Complete strategy & phases
├── EXECUTION_PROMPTS.md ← Ready-to-use prompts per phase
├── QUICK_REFERENCE.md ← Single-page tracking checklist
├── INVENTORY.md ← (Generated during Phase 1)
├── TEST_MATRIX.md ← (Generated during Phase 1)
├── BREAKING_CHANGES_AUDIT.md ← (Generated during Phase 3)
└── COMPLETION_REPORT.md ← (Generated after Phase 5)
| Document | Purpose | Audience | Read Time |
|---|---|---|---|
| NODEJS_UPGRADE_PLAN.md | Complete strategy, 5 phases, risk assessment | Planners, decision-makers | 20 min |
| EXECUTION_PROMPTS.md | Copy-paste prompts for each phase | Agents executing the work | 5 min per phase |
| QUICK_REFERENCE.md | One-page checklist for tracking progress | Project lead, team | 2 min |
| Aspect | Current | Target |
|---|---|---|
package.json engines |
>=20.19.0 | >=22.0.0 |
.nvmrc |
22 | 22 ✓ (no change) |
| Workflows using Node 20 | 3 | 0 |
| Workflows using Node 22.x | 2 | 13 |
| Workflows using Node 24 | 3 | 0 (downgrade) |
Workflows using .nvmrc |
3 | 16 (standardised) |
Workflows using lts/* |
1 | 1 ✓ (no change) |
Total workflows referencing Node: 16 files with 6 different version strategies → 1 standardised strategy
| Phase | Title | Duration | Scope | Blocker |
|---|---|---|---|---|
| 1 | Audit & Documentation | 30 min | Inventory versions, create test matrix, plan | No |
| 2 | Local Upgrade | 45 min | Update package.json, run npm update, commit | No |
| 3 | Test & Validation | 1 hour | Full test suite, validations, breaking change audit | Yes |
| 4 | Workflow Standardisation | 1 hour | Update 16 workflows to use .nvmrc consistently | No |
| 5 | CI/CD Verification & Merge | 30 min | PR, CI checks, merge to develop, complete | Yes |
Total: ~4 hours (can be split over 1–2 days)
See NODEJS_UPGRADE_PLAN.md for:
- Detailed objectives per phase
- Step-by-step execution instructions
- Success criteria
- Rollback procedures
- Risk assessment
- Complete timeline
- Read the plan: NODEJS_UPGRADE_PLAN.md (20 min)
- Review risk assessment (Low risk; all changes tested)
- Approve or iterate on the plan
- Assign execution to team member(s)
- Review EXECUTION_PROMPTS.md — self-contained prompts per phase
- Use QUICK_REFERENCE.md — track progress with checklist
- Follow one phase at a time — each phase has clear success criteria
- Report blockers — document in project folder (BREAKING_CHANGES_AUDIT.md if issues arise)
✅ Node Version: 22.x (LTS, proven stable)
✅ Workflow Strategy: All use .nvmrc (single source of truth)
✅ Dependency Update: Run npm update (modernise all packages)
✅ Branch Strategy: feat/nodejs-upgrade-22-* → PR to develop
✅ Testing: Full suite + validation scripts (Phase 3)
All of the following must be true after execution:
- ✓ package.json updated to Node >=22.0.0
- ✓ All tests pass with Node 22 (85 unit tests, 12 bash tests)
- ✓ All validation scripts pass (npm run validate:all)
- ✓ All 16 workflows use .nvmrc (single source of truth)
- ✓ All CI checks pass on the PR
- ✓ PR merged to develop with squash commit
- ✓ No Node.js version warnings in subsequent workflow output
- ✓ Post-merge monitoring shows no regressions (2–3 days)
| Phase | Duration | Effort | Owner |
|---|---|---|---|
| Phase 1: Audit | 30 min | Low | [Agent / Designer] |
| Phase 2: Local Upgrade | 45 min | Low | [Agent] |
| Phase 3: Validation | 1 hour | Medium | [Agent] |
| Phase 4: Workflows | 1 hour | Medium | [Agent] |
| Phase 5: Merge & Close | 30 min | Low | [Agent] |
| Total | ~4 hours | Medium | [Team] |
Can be executed in one session or split over 2 days (e.g., Phase 2–3 on Day 1, Phase 4–5 on Day 2).
| Risk | Probability | Impact | Mitigation |
|---|---|---|---|
| Package breaking change | 5% | High | Phase 3 tests catch 95%; pin if needed |
| Workflow runtime error | 2% | Medium | Phase 4 linting validates syntax |
| CI flakiness (unrelated) | 10% | Low | Rerun workflow; known flaky tests |
| npm version conflict | 1% | Low | Phase 2 validates compatibility |
| Rollback needed | 1% | Low | All commits atomic; easy revert |
Overall Risk Level: 🟢 LOW
Most risks mitigated by Phase 3 comprehensive testing and Phase 4 workflow validation before merge.
If any phase fails, rollback is simple:
- Phases 1–2: No merged commits yet; discard branch
- Phase 3: If tests fail, identify breaking dependency, pin it, re-run tests
- Phase 4: Discard workflow changes, re-do with fixes
- Phase 5: If CI fails, fix issues and re-merge OR
git revertif already merged
No data loss risk. All changes are code-only and tracked in git.
Once you've reviewed the plan, please confirm:
✓ Plan reviewed and understood
✓ Risk level acceptable (Low)
✓ Timeline acceptable (~4 hours)
✓ Assign to: [Agent/Team Member]
✓ Target completion: [Date]
Approval: [Signature / Confirmation]
Once you approve, the next steps are:
- Create issues for each phase (5 issues total)
- Assign to agent(s)
- Agent executes phases in order using EXECUTION_PROMPTS.md
- Track progress in QUICK_REFERENCE.md
- Merge to develop after Phase 5 complete
- Monitor workflows for 2–3 days
A: Node 24 is newer and carries higher breaking-change risk. Node 22 is proven stable with 2.75 years of support remaining. We can upgrade to 24 in 6–12 months once it's battle-tested.
A: Unlikely. Phase 3 runs the full test suite and all validation scripts. We've tested for breaking changes. The risk level is Low.
A: ~4 hours of execution time, but can be spread over 1–2 days. Most of that is waiting for tests to run.
A: Document it in BREAKING_CHANGES_AUDIT.md. We'll either fix the issue or pin the problematic package. Rare (~5% probability).
A: Yes, easily. All commits are atomic and tracked in git. Revert takes minutes.
A: Optional. After the upgrade completes, update DEVELOPMENT.md to document Node 22 requirement.
- Issue: Warnings about Node 20 in workflow output
- Configuration:
.nvmrc,package.json,.github/workflows/* - Epic: Infrastructure Modernisation 2026-Q3
- Related PRs: (None yet; will be created during Phase 5)
- ✅ Read NODEJS_UPGRADE_PLAN.md (20 min)
- ⏳ Review and approve the plan
- ⏳ Confirm your approval using the decision template above
- Create 5 GitHub issues (one per phase)
- Assign to execution team
- Begin Phase 1 (Audit & Documentation)
- Created: 2026-07-30
- Author: Ash Shaw
- Stakeholders: DevOps, CI/CD, Infrastructure
- Repository: lightspeedwp/.github
- Status: Planning & Documentation Complete
- Approval: Pending user review
This project is ready for execution. Review the plan, ask questions, and approve when ready!
This project is coordinated with:
- #1733 — Phase 2: Folder Structure & Linking
See Linking Standard for linking patterns.
flowchart TD
accTitle: flowchart diagram
accDescr: flowchart flowchart
A[Start Here] --> B[Read Scope and Prerequisites]
B --> C[Run the Documented Workflow]
C --> D[Validate with Repo Tooling]
D --> E[Open PR or Hand-off]
classDef start fill:#E8F5E9,stroke:#2E7D32,stroke-width:2px,color:#1B5E20;
classDef prep fill:#E3F2FD,stroke:#1565C0,stroke-width:2px,color:#0D47A1;
classDef run fill:#fef3c7,stroke:#b45309,stroke-width:2px,color:#4a2c00;
classDef gate fill:#f3e8ff,stroke:#7e22ce,stroke-width:2px,color:#3b0764;
classDef done fill:#E0F2F1,stroke:#00695C,stroke-width:2px,color:#004D40;
class A start;
class B prep;
class C run;
class D gate;
class E done;