Skip to content

Commit

Permalink
try to upgrade node from 16 directly to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
pengyin-shan committed Dec 17, 2024
1 parent 74911c1 commit 328831e
Show file tree
Hide file tree
Showing 4 changed files with 9,805 additions and 24,812 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 22.x

- name: Checkout code
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed
- Move IRA table columns [#338](https://github.com/policy-design-lab/pdl-frontend/issues/338)
- Upgraded the node version from 16 to 22, including Dockerfile and GitHub Actions [#352](https://github.com/policy-design-lab/pdl-frontend/issues/352)

## [1.5.0] - 2024-12-10

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ----------------------------------------------------------------------
# Build application using node
# ----------------------------------------------------------------------
FROM node:14.5.0-alpine AS builder
FROM node:22.12.0-alpine AS builder
WORKDIR /usr/src/app
ARG APP_ENV=""
ENV APP_ENV=${APP_ENV}

COPY package.json package-lock.json /usr/src/app/

RUN npm install
RUN npm install --legacy-peer-deps

ENV PATH="./node_modules/.bin:$PATH"

Expand All @@ -20,6 +20,6 @@ RUN npm run build
# ----------------------------------------------------------------------
# Include nginx web server and host the build
# ----------------------------------------------------------------------
FROM nginx:1.19.1-alpine
FROM nginx
COPY --from=builder /usr/src/app/build/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
Loading

0 comments on commit 328831e

Please sign in to comment.