Skip to content

Commit b6da288

Browse files
author
Daniel Sullivan
committed
fix: update Docker build and release workflow - remove Node 18 issues and add latest tag
1 parent 7aa3361 commit b6da288

3 files changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Set up Node.js
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: '18'
20-
21-
- name: Build frontend
22-
working-directory: ./frontend
23-
run: |
24-
npm ci
25-
npm run build
26-
2716
- name: Log in to GitHub Container Registry
2817
uses: docker/login-action@v3
2918
with:
@@ -40,6 +29,7 @@ jobs:
4029
type=ref,event=tag
4130
type=semver,pattern={{version}}
4231
type=semver,pattern={{major}}.{{minor}}
32+
type=raw,value=latest
4333
4434
- name: Build and push Docker image
4535
uses: docker/build-push-action@v5

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM node:24 AS frontend-build
33
WORKDIR /app/frontend
44
COPY frontend/package.json frontend/package-lock.json ./
5-
RUN npm install
5+
RUN npm ci --legacy-peer-deps
66
COPY frontend/ ./
77
RUN npm run build
88

frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"jsx": "react-jsx",
1313
"strict": true,
1414
"forceConsistentCasingInFileNames": true,
15-
"types": ["vitest/globals", "jsdom", "@testing-library/jest-dom", "node"]
15+
"types": ["vitest/globals", "@testing-library/jest-dom"]
1616
},
1717
"include": ["src", "tests"]
1818
}

0 commit comments

Comments
 (0)