Skip to content

Commit dfe022a

Browse files
nasdanclaude
andcommitted
chore: upgrade to Node 26 and node24 GitHub Actions
- 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 <noreply@anthropic.com>
1 parent d54e9d5 commit dfe022a

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v7
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v7
13+
with:
14+
node-version: 26.x
1115
- name: Install front
1216
run: |
1317
cd front

‎.github/workflows/dev-cd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
url: https://dev-codepaster.azurewebsites.net
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v7
2424

2525
- name: Log in to GitHub container registry
26-
uses: docker/login-action@v3
26+
uses: docker/login-action@v4
2727
with:
2828
registry: ghcr.io
2929
username: ${{ github.actor }}

‎.github/workflows/prod-cd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
url: https://codepaster.net/
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v7
2020

2121
- name: Log in to GitHub container registry
22-
uses: docker/login-action@v3
22+
uses: docker/login-action@v4
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.actor }}

‎Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine AS base
1+
FROM node:26-alpine3.24 AS base
22
RUN mkdir -p /usr/app
33
WORKDIR /usr/app
44

@@ -26,9 +26,9 @@ COPY --from=build-backend /usr/app/dist ./
2626
COPY --from=build-frontend /usr/app/dist $STATIC_FILES_PATH
2727
COPY ./back/package.json ./
2828
COPY ./back/package-lock.json ./
29-
RUN npm ci --only=production
29+
RUN npm ci --omit=dev
3030

31-
FROM nasdan/azure-pm2-nginx:nodejs-20-nginx-1.24
31+
FROM nasdan/azure-pm2-nginx:nodejs-26-nginx-1.30
3232
ENV NODE_ENV=production
3333
ENV STATIC_FILES_PATH=./public
3434
ENV MOCK_REPOSITORY=false

0 commit comments

Comments
 (0)