Skip to content

Commit 8bb6708

Browse files
committed
Update node and npm in docker.
1 parent f8c0ff7 commit 8bb6708

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish-to-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Node.js
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: '18'
31+
node-version: '20'
3232
cache: 'npm'
3333

3434
- name: Install dependencies

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Build stage
2-
from node:18-alpine as build
2+
from node:20-alpine as build
33

44
workdir /app
55

6+
# Update npm to latest version
7+
run npm install -g npm@latest
8+
69
# Copy package files
710
copy package*.json ./
811

0 commit comments

Comments
 (0)