Skip to content

Commit

Permalink
Bump react-dom and @types/react-dom in /frontend (nucleuscloud#2036)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nick Z <[email protected]>
  • Loading branch information
dependabot[bot] and nickzelei authored May 29, 2024
1 parent 9965b9f commit 8cfdb19
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 51 deletions.
36 changes: 12 additions & 24 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache-dependency-path: ./frontend/package-lock.json

- run: npm install
- run: npm run knip:production
Expand All @@ -33,20 +37,10 @@ jobs:

- name: Set up Node
uses: actions/setup-node@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: prettier-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: lts/*
cache: npm
cache-dependency-path: ./frontend/package-lock.json

- run: npm install
- run: npm run prettier:check
Expand All @@ -63,19 +57,13 @@ jobs:

- name: Set up Node
uses: actions/setup-node@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
node-version: lts/*
cache: npm
cache-dependency-path: ./frontend/package-lock.json

- run: npm install
- name: Build
run: npm run build
env:
NODE_ENV: production
2 changes: 1 addition & 1 deletion docker/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine AS base
FROM node:20-alpine AS base

# This Dockerfile is copy-pasted into our main docs at /docs/handbook/deploying-with-docker.
# Make sure you update both files!
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/web/dev/build/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine

WORKDIR /app

Expand Down
8 changes: 4 additions & 4 deletions frontend/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"next-auth": "^5.0.0-beta.4",
"next-themes": "^0.2.1",
"posthog-js": "^1.128.3",
"react": "18.2.0",
"react": "18.3.1",
"react-day-picker": "^8.10.1",
"react-dom": "18.2.0",
"react-dom": "18.3.1",
"react-hook-form": "^7.51.5",
"react-hook-form-persist": "^3.0.0",
"react-icons": "^5.2.1",
Expand All @@ -72,8 +72,8 @@
},
"devDependencies": {
"@types/node": "20.12.12",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-window": "^1.8.8",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
Expand Down
42 changes: 21 additions & 21 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8cfdb19

Please sign in to comment.