Skip to content

Commit

Permalink
Use Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo committed Aug 21, 2023
1 parent 688b605 commit 1577b7b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3.8.1
with:
node-version: "18"
node-version: "20"

- run: npm ci
- run: TAILWIND_MODE=build npm run postcss:build
- run: npm run eslint
2 changes: 1 addition & 1 deletion .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3.8.1
with:
node-version: "18"
node-version: "20"
- run: npm ci
- run: npm run build --if-present
- run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3.8.1
with:
node-version: "18"
node-version: "20"
- run: npm ci
- run: npm run prettier:check
2 changes: 1 addition & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3.8.1
with:
node-version: "18"
node-version: "20"
- run: npm ci
- run: npm run typecheck
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine3.14 as deps-dev
FROM node:20-alpine as deps-dev

WORKDIR /deps

Expand All @@ -8,7 +8,7 @@ RUN npm ci

# ---

FROM node:18-alpine3.14 as deps-prod
FROM node:20-alpine as deps-prod

WORKDIR /deps

Expand All @@ -20,7 +20,7 @@ RUN npm ci

# ---

FROM node:18-alpine3.14 as build
FROM node:20-alpine as build

ENV NODE_ENV=production

Expand All @@ -34,7 +34,7 @@ RUN npm run build

# ---

FROM node:18-alpine3.14
FROM node:20-alpine

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typecheck": "tsc --noEmit"
},
"engines": {
"node": "18",
"node": "20",
"npm": "9"
},
"dependencies": {
Expand Down

0 comments on commit 1577b7b

Please sign in to comment.