Skip to content

Commit

Permalink
chore: update node version
Browse files Browse the repository at this point in the history
  • Loading branch information
mutu committed Jul 30, 2024
1 parent afc6d15 commit 9d58755
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 16
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 16 # semantic-release 需要 >= 16 的 Node.js 环境
node-version: 18 # semantic-release 需要 >= 16 的 Node.js 环境
cache: 'pnpm'

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
node-version: [16]
node-version: [18]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"engines": {
"node": "^16",
"pnpm": "^8"
"node": "^18",
"pnpm": "^8 || ^9"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
4 changes: 2 additions & 2 deletions packages/gi-site/docker/website.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Website for graphinsight

##################################### Builder ####################################
from docker.io/library/node:16 AS builder
from docker.io/library/node:18 AS builder

COPY . /workspace/G6VP

Expand All @@ -28,7 +28,7 @@ RUN cd /workspace/G6VP/packages/gi-httpservice && rm -fr node_modules && npm ins


##################################### Runtime ####################################
from docker.io/library/node:16-alpine
from docker.io/library/node:18-alpine

COPY --from=builder /workspace/G6VP/packages/gi-httpservice /workspace/graphinsight
COPY --from=builder /workspace/G6VP/packages/gi-site/docker/docker-entrypoint.sh /workspace/docker-entrypoint.sh
Expand Down

0 comments on commit 9d58755

Please sign in to comment.