Skip to content

chore: upgrade to Node 26 and node24 GitHub Actions - #168

Merged
nasdan merged 1 commit into
developfrom
chore/node-26
Nov 5, 2026
Merged

nasdan merged 1 commit into
developfrom
chore/node-26

Conversation

@nasdan

@nasdan nasdan commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Node 20 is EOL. Moves code-paster to Node 26 LTS and the GitHub Actions to their node24 versions.

  • Dockerfile: build stages on node:26-alpine3.24; runtime on nasdan/azure-pm2-nginx:nodejs-26-nginx-1.30 (Node 26.13, nginx 1.30.6).
  • npm ci --only=production → npm ci --omit=dev (--only is deprecated in npm 11).
  • CI: actions/checkout@v7 and actions/setup-node@v7 with Node 26.x (it used the runner's default Node before).
  • CD (dev and prod): actions/checkout@v7, docker/login-action@v4.

Tested locally (Node 26.13)

  • Image builds; front and back type-check pass (part of npm run build).
  • Tests: back 2/2, front 31/31.
  • Container with a temporary MongoDB: pm2 online with no restarts; / 200, /api/create-room 200, unknown route 404, HTTP → HTTPS 301, websocket upgrade 101.
  • socket.io end to end: trainer and student join a room, TRAINER_APPEND_TEXT and TRAINER_SET_FULL_TEXT reach both, and a late student gets the full content from MongoDB.

Rollback

  • dev: ghcr.io/lemoncode/code-paster:dev-d54e9d58064f78b87f4d7d8d3ffc72eaa08840df-1
  • prod: ghcr.io/lemoncode/code-paster:prod-5fd6f8ae5df0def463b0657eee48eae109f906f5-1

🤖 Generated with Claude Code

- Dockerfile: build stages on node:26-alpine3.24, runtime on
  nasdan/azure-pm2-nginx:nodejs-26-nginx-1.30
- npm ci --only=production -> --omit=dev (npm 11)
- CI: checkout@v7 and setup-node@v7 with Node 26.x
- CD: checkout@v7 and docker/login-action@v4

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nasdan
nasdan merged commit 7a9edf2 into develop Nov 5, 2026
2 checks passed
@nasdan
nasdan deleted the chore/node-26 branch November 5, 2026 08:08

This branch was successfully deployed

1 active deployment
Development — dfe022aa Deployed Nov 5, 2026 by nasdan via deploy #9
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