Skip to content

Commit

Permalink
chore: Node.js v16 を使用するように
Browse files Browse the repository at this point in the history
v18 で期待通り動かないパッケージがあるため
  • Loading branch information
knokmki612 committed Oct 28, 2022
1 parent 79144fc commit c41deb3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "16"
cache: "yarn"
cache-dependency-path: "frontend/yarn.lock"
- run: corepack yarn install --immutable
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.12.0-slim as build
FROM node:16.18.0-slim as build
WORKDIR /app
COPY . ./
ADD https://raw.githubusercontent.com/npocccties/chiloportal/develop/backend/doc/openapi.yaml /backend/doc/openapi.yaml
Expand All @@ -11,7 +11,7 @@ ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
ENV NEXT_PUBLIC_MOODLE_DASHBOARD_URL=${NEXT_PUBLIC_MOODLE_DASHBOARD_URL}
RUN yarn build

FROM node:18.12.0-slim as install
FROM node:16.18.0-slim as install
WORKDIR /app
COPY . ./
RUN corepack yarn workspaces focus --all --production
Expand Down
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 動作環境

- OS: Unix 系(Windows では [WSL](https://docs.microsoft.com/ja-jp/windows/wsl/install) 等をお使いください)
- Node.js: [Active LTS](https://nodejs.org/en/about/releases/)
- Node.js: ~~[Active LTS](https://nodejs.org/en/about/releases/)~~ v16.18.0

## 開発

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"typescript": "^4.8.4"
},
"engines": {
"node": "^18.12.0"
"node": "^16.18.0"
},
"homepage": "https://github.com/npocccties/chiloportal#readme",
"keywords": [
Expand Down

0 comments on commit c41deb3

Please sign in to comment.