diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e1333b258a..391d52182c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js 🔧 uses: actions/setup-node@v3.8.1 with: - node-version: 18.x + node-version: 22.x - name: Update npm 🚀 run: npm install -g npm@latest @@ -36,6 +36,6 @@ jobs: - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: - GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This is provided by GitHub. + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This is provided by GitHub. BRANCH: gh-pages # The branch the action should deploy to. FOLDER: build # The folder the action should deploy. diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index af42b0fbf3..7264bad747 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v3.8.1 with: - node-version: 18.x + node-version: 22.x - name: Install 🔧 # Install dependencies run: | diff --git a/Dockerfile b/Dockerfile index c460aec5ed..6369285bc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # This file is the main docker file configurations # Official Node JS runtime as a parent image -FROM node:20.0-alpine +FROM node:22-alpine # Set the working directory to ./app WORKDIR /app @@ -9,15 +9,13 @@ WORKDIR /app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) -COPY package.json ./ +COPY package*.json ./ RUN apk add --no-cache git # Install any needed packages -RUN npm install - # Audit fix npm packages -RUN npm audit fix +RUN npm ci # Bundle app source COPY . /app diff --git a/package.json b/package.json index ed1ee1f9a4..9cb31bee49 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "name": "developerfolio", "version": "0.1.0", "private": true, + "engines": { + "node": "22.x" + }, "dependencies": { "colorthief": "^2.3.0", "enzyme": "^3.11.0", diff --git a/src/containers/greeting/Greeting.js b/src/containers/greeting/Greeting.js index dbcd469bd5..3a608fa4fb 100644 --- a/src/containers/greeting/Greeting.js +++ b/src/containers/greeting/Greeting.js @@ -41,13 +41,12 @@ export default function Greeting() {