Update Node.js to v20 and upgrade GitHub Actions

This commit is contained in:
stabgan
2025-03-27 01:01:58 +05:30
parent 7ce7f9336e
commit 0c836b49cd
2 changed files with 17 additions and 7 deletions

View File

@@ -18,12 +18,17 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Verify Node.js and npm versions
run: |
node --version
npm --version
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: npm-cache
with:
path: |
@@ -45,7 +50,7 @@ jobs:
run: npm cache clean --force && npm install --legacy-peer-deps --no-optional
- name: Cache build output
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: dist
key: ${{ runner.os }}-build-${{ github.sha }}
@@ -76,13 +81,18 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Verify Node.js and npm versions
run: |
node --version
npm --version
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: npm-cache
with:
path: |
@@ -131,7 +141,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}

View File

@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /app