Skip to content

chore: update Node.js from 25 to 26 across all files#2268

Merged
pethers merged 8 commits intomainfrom
copilot/update-node-versions
May 5, 2026
Merged

chore: update Node.js from 25 to 26 across all files#2268
pethers merged 8 commits intomainfrom
copilot/update-node-versions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

  • Audit all files needing Node.js version updates
  • Update package.json, .nvmrc, .devcontainer, CI workflows, documentation, .github/ config files
  • Fix nightly CI failure: dynamically resolve latest nightly version
  • Regenerate all 14 news-*.lock.yml files via gh aw compile
  • Fix End-of-Life-Strategy.md and FUTURE_WORKFLOWS.md inconsistencies
  • Fix news-prewarm/action.yml default node-version: '25''26'
  • Regenerate package-lock.json (root engines now >=26)
  • Fix javascript-testing.yml: remove invalid --ignore-engines flag from npm ci
  • WORKFLOWS.md: technology stack table row updated Node.js | 25Node.js | 26
  • Article-Generation.md: "Current configuration" table updated Node.js 25Node.js 26
  • .github/skills/gh-aw-github-actions-integration/SKILL.md: multi-platform matrix example updated ['25']['26']
  • news-prewarm/action.yml: description updated "11 news workflow files" → "14 news workflow files"
  • javascript-testing.yml: nightly resolver now captures curl and Python stderr separately and emits specific ::warning:: annotations distinguishing network failures from schema changes

Copilot AI requested a review from pethers May 5, 2026 19:27
Copilot finished work on behalf of pethers May 5, 2026 19:27
@github-actions github-actions Bot added the size-xs Extra small change (< 10 lines) label May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: size-xs

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions github-actions Bot added documentation Documentation updates dependencies Dependency updates security Security improvements workflow GitHub Actions workflows translation Translation updates isms ISMS compliance changes iso-27001 ISO 27001 controls nist-csf NIST CSF compliance cis-controls CIS Controls ci-cd CI/CD pipeline changes deployment Deployment configuration performance Performance optimization testing Test coverage accessibility WCAG 2.1 AA compliance skill Skill configuration news News articles and content generation agentic-workflow Agentic workflow changes agent Agent configuration size-l Large change (250-1000 lines) labels May 5, 2026
@pethers
Copy link
Copy Markdown
Member

pethers commented May 5, 2026

@copilot apply changes based on the comments in this thread and fix root cause of TypeScript & JavaScript Testing / Node.js 27 Nightly Compat (pull_request)
TypeScript & JavaScript Testing / Node.js 27 Nightly Compat (pull_request)Failing after 27s

…rate lock files to Node 26; fix docs

Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/5db7266a-83ac-4555-aaea-a78c3c8b4213

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot apply changes based on the comments in this thread and fix root cause of [TypeScript & JavaScript Testing /...

Fixed in 191011e:

Root cause of nightly CI failure: Node 27 nightly builds don't exist yet — the nodejs.org nightly index currently only has up to v26. The job was failing with Unable to find Node version '27.0.0-nightly'.

Fix: The node-next-compat job now dynamically resolves the latest available nightly from https://nodejs.org/download/nightly/index.json (currently v26.0.0-nightly*) and gates all subsequent steps on version availability. When Node 27 nightly builds start, the job will automatically pick them up.

Lock files: All 14 news-*.lock.yml files regenerated via gh aw compile — now use node:26-alpine and node-version: '26'.

Documentation fixes:

  • End-of-Life-Strategy.md: gantt section renamed "Node.js 25 (interim — completed)", risk row updated to "Node.js 26 → 27", migration row fixed to "Node.js 25 → 26 (✅ completed)"
  • FUTURE_WORKFLOWS.md: Q1 2026 row no longer claims Node 26; Q2 2026 marks upgrade as completed ✅

@github-actions github-actions Bot added the size-xl Extra large change (> 1000 lines) label May 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI changed the title chore: update devcontainer base image from node:24-trixie to node:25-trixie chore: update Node.js from 25 to 26 across all files May 5, 2026
Copilot finished work on behalf of pethers May 5, 2026 20:44
@pethers pethers requested a review from Copilot May 5, 2026 20:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 68 out of 68 changed files in this pull request and generated 17 comments.

runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
runtimes:
node:
version: "25"
version: "26"
Comment thread package.json
},
"engines": {
"node": ">=25"
"node": ">=26"

- name: Install dependencies
if: steps.nightly.outputs.version != ''
run: npm ci --ignore-engines
{
"name": "HTML Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:24-trixie",
"image": "mcr.microsoft.com/devcontainers/javascript-node:26-trixie",
@pethers
Copy link
Copy Markdown
Member

pethers commented May 5, 2026

@copilot apply changes based on the comments in this thread make sure node 26 is used everywhere correctly

…te package-lock.json

Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/b6d6b438-17ab-430c-bc93-4840185cbc5e

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot apply changes based on the comments in this thread make sure node 26 is used everywhere correctly

Fixed in cbcfc81:

  • news-prewarm/action.yml: Default node-version changed from '25' to '26' — all 14 news workflows now run Node 26 end-to-end including the pre-warm/pre-flight job
  • package-lock.json: Regenerated via npm install — root engines now records >=26
  • javascript-testing.yml: Removed invalid --ignore-engines flag from npm ci in the nightly compat job (--ignore-engines is a yarn flag, not supported by npm)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 69 out of 70 changed files in this pull request and generated 6 comments.

Comment thread WORKFLOWS.md
- **Transparency**: Public demonstration of security automation and quality gates

The project has been migrated from JavaScript to **TypeScript** (31 modules in `src/browser/`) with all workflows updated accordingly. TypeScript compilation is handled by Vite (esbuild) for browser bundles and Node 25's native type-stripping for scripts.
The project has been migrated from JavaScript to **TypeScript** (31 modules in `src/browser/`) with all workflows updated accordingly. TypeScript compilation is handled by Vite (esbuild) for browser bundles and Node 26's native type-stripping for scripts.
Comment thread Article-Generation.md
%%{init: {"theme":"dark","themeVariables":{"primaryColor":"#1565C0","primaryTextColor":"#ffffff","primaryBorderColor":"#0A3F7F","lineColor":"#90CAF9","secondaryColor":"#2E7D32","secondaryTextColor":"#ffffff","tertiaryColor":"#FF9800","tertiaryTextColor":"#000000","mainBkg":"#1565C0","secondBkg":"#2E7D32","tertiaryBkg":"#FF9800","noteBkgColor":"#FFC107","noteTextColor":"#000000","errorBkgColor":"#D32F2F","fontFamily":"Inter, Helvetica, Arial, sans-serif"}}}%%
flowchart TB
A["Trigger<br/>news-*.md schedule or workflow_dispatch"] --> B["🧰 Runtime setup<br/>Node 25 · npm ci · MCP pre-warm"]
A["Trigger<br/>news-*.md schedule or workflow_dispatch"] --> B["🧰 Runtime setup<br/>Node 26 · npm ci · MCP pre-warm"]
Comment on lines +234 to +237
VERSION=$(curl -sfL 'https://nodejs.org/download/nightly/index.json' | \
python3 -c "import json,sys; data=json.load(sys.stdin); print(data[0]['version'].lstrip('v'))" 2>/dev/null || echo '')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Latest nightly: ${VERSION:-not available}"
uses: actions/setup-node@v4
with:
node-version: '25'
node-version: '26'
**Project**: Riksdagsmonitor — Swedish Parliament (Riksdag) monitoring platform
**Stack**: HTML5, CSS3, TypeScript 6.0.3, Vite 8.0.10, Vitest 4.1.5, Cypress 15.14.1
**Runtime**: Node.js 25, ES2025 target, ESNext modules
**Runtime**: Node.js 26, ES2025 target, ESNext modules
description: |
Shared setup for every `.github/workflows/news-*.md` agentic workflow:
1. Set up Node.js 25 (matches `runtimes.node.version` in every workflow).
1. Set up Node.js 26 (matches `runtimes.node.version` in every workflow).
@pethers
Copy link
Copy Markdown
Member

pethers commented May 5, 2026

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot apply changes based on the comments in this thread

Applied in a41c8dc and 9b960ff:

  • WORKFLOWS.md: technology stack table updated Node.js | 25Node.js | 26
  • Article-Generation.md: "Current configuration" table updated Node.js 25Node.js 26
  • .github/skills/gh-aw-github-actions-integration/SKILL.md: multi-platform matrix example updated ['25']['26']
  • news-prewarm/action.yml: description corrected "11 news workflow files" → "14 news workflow files"
  • javascript-testing.yml: nightly resolver now captures curl and Python stderr separately and emits specific ::warning:: annotations distinguishing network failures from schema changes (rather than silently returning empty)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot finished work on behalf of pethers May 5, 2026 21:27
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@pethers pethers merged commit 063dfdb into main May 5, 2026
19 checks passed
@pethers pethers deleted the copilot/update-node-versions branch May 5, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility WCAG 2.1 AA compliance agent Agent configuration agentic-workflow Agentic workflow changes ci-cd CI/CD pipeline changes cis-controls CIS Controls dependencies Dependency updates deployment Deployment configuration documentation Documentation updates isms ISMS compliance changes iso-27001 ISO 27001 controls news News articles and content generation nist-csf NIST CSF compliance performance Performance optimization security Security improvements size-l Large change (250-1000 lines) size-xl Extra large change (> 1000 lines) size-xs Extra small change (< 10 lines) skill Skill configuration testing Test coverage translation Translation updates workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants