Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(node): update to LTS v22 #274

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
uses: actions/checkout@v4
- name: Add problem matchers
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v20
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
- name: Install Dependencies
run: yarn --immutable
Expand All @@ -32,10 +32,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Use Node.js v20
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
Expand All @@ -56,10 +56,10 @@ jobs:
uses: actions/checkout@v4
- name: Add problem matchers
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v20
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
- name: Install Dependencies
run: yarn --immutable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-static-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ secrets.SKYRA_TOKEN }}
- name: Use Node.js v20
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
- name: Install Dependencies
run: yarn --immutable
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Base Stage #
# ================ #

FROM node:20-alpine as base
FROM node:22-alpine AS base

WORKDIR /usr/src/app

Expand All @@ -24,17 +24,17 @@ ENTRYPOINT ["dumb-init", "--"]
# Builder Stage #
# ================ #

FROM base as builder
FROM base AS builder

ENV NODE_ENV="development"

COPY --chown=node:node tsconfig.base.json .
COPY --chown=node:node prisma/ prisma/
COPY --chown=node:node src/ src/

RUN yarn install --immutable
RUN yarn run prisma:generate
RUN yarn run build
RUN yarn install --immutable \
&& yarn run prisma:generate \
&& yarn run build

# ================ #
# Runner Stage #
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@types/gradient-string": "^1.1.6",
"@types/he": "^1.2.3",
"@types/luxon": "^3.4.2",
"@types/node": "^20.17.1",
"@types/node": "^22.8.6",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-v8": "^2.1.3",
Expand All @@ -90,7 +90,7 @@
"minimist": "^1.2.8"
},
"engines": {
"node": ">=20.0.0"
"node": ">=22.11.0"
},
"commitlint": {
"extends": [
Expand All @@ -115,6 +115,6 @@
},
"packageManager": "[email protected]",
"volta": {
"node": "20.18.0"
"node": "22.11.0"
}
}
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ __metadata:
"@types/gradient-string": "npm:^1.1.6"
"@types/he": "npm:^1.2.3"
"@types/luxon": "npm:^3.4.2"
"@types/node": "npm:^20.17.1"
"@types/node": "npm:^22.8.6"
"@typescript-eslint/eslint-plugin": "npm:^7.18.0"
"@typescript-eslint/parser": "npm:^7.18.0"
"@vitest/coverage-v8": "npm:^2.1.3"
Expand Down Expand Up @@ -1538,12 +1538,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:^20.17.1":
version: 20.17.1
resolution: "@types/node@npm:20.17.1"
"@types/node@npm:*, @types/node@npm:^22.8.6":
version: 22.8.6
resolution: "@types/node@npm:22.8.6"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10/d1f4cd7158df97167953031f7245af3203f52b5f4965c175253b96489c7c55e4c2d4c8a697bb34211bfb99b8824cfcf6287e16cabdac6184a99eedcb26fdd432
undici-types: "npm:~6.19.8"
checksum: 10/27bb73f033eeec05b4ed52dbc521cac28fb7ac14af267119c9bae0318c97848cd790ac7f0a65924ace7ea717eae62e91bd227da4bd6c0217d0016a7a6cd0a156
languageName: node
linkType: hard

Expand Down Expand Up @@ -5494,10 +5494,10 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~6.19.2":
version: 6.19.6
resolution: "undici-types@npm:6.19.6"
checksum: 10/0ea9bc25762a86597d095b3772f6cec0bcabb796c339f7dfa2bd601c745a480289eb2939848dc285a56d4f94f50c475868160d8d6d3f54e823f1faf7ea9e9468
"undici-types@npm:~6.19.8":
version: 6.19.8
resolution: "undici-types@npm:6.19.8"
checksum: 10/cf0b48ed4fc99baf56584afa91aaffa5010c268b8842f62e02f752df209e3dea138b372a60a963b3b2576ed932f32329ce7ddb9cb5f27a6c83040d8cd74b7a70
languageName: node
linkType: hard

Expand Down