Skip to content

Commit 46372f5

Browse files
authored
Fix build (aws#783)
* Update Node * Update NVM * Update corepack * Add test action to ensure docker image builds * Only run on pull requests since publish runs on main * Update changelog
1 parent ec7d6f5 commit 46372f5

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

Diff for: .github/workflows/test_build_docker.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test build the Docker image
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test-build-docker-image:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Build Docker image
20+
run: |
21+
docker build .
22+
docker build --build-arg NEPTUNE_NOTEBOOK=true .

Diff for: .github/workflows/unit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version:
18-
- 22.11.0
18+
- 22.13.1
1919
pnpm-version:
2020
- 9.15.0
2121
steps:

Diff for: Changelog.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
- Graph legend is now consistent with other panels
3838
- **Updated** dependencies and remove unused dependencies
3939
([#764](https://github.com/aws/graph-explorer/pull/764),
40-
[#776](https://github.com/aws/graph-explorer/pull/776))
40+
[#776](https://github.com/aws/graph-explorer/pull/776),
41+
[#783](https://github.com/aws/graph-explorer/pull/783))
4142

4243
## Release 1.13.0
4344

Diff for: Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM amazonlinux:2023
33
ARG NEPTUNE_NOTEBOOK
44

55
ENV NVM_DIR=/root/.nvm
6-
ENV NODE_VERSION=v22.11.0
6+
ENV NODE_VERSION=v22.13.1
77
ENV NEPTUNE_NOTEBOOK=$NEPTUNE_NOTEBOOK
88
ENV HOME=/graph-explorer
99

@@ -37,11 +37,12 @@ WORKDIR /graph-explorer
3737
RUN yum update -y && \
3838
yum install -y tar gzip git findutils openssl && \
3939
mkdir -p $NVM_DIR && \
40-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
40+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash && \
4141
source $NVM_DIR/nvm.sh && \
4242
nvm install $NODE_VERSION && \
4343
nvm alias default $NODE_VERSION && \
4444
nvm use $NODE_VERSION && \
45+
npm install --global corepack@latest && \
4546
corepack enable && \
4647
pnpm install && \
4748
pnpm build && pnpm clean:dep && pnpm install --prod --ignore-scripts && \

Diff for: additionaldocs/development.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment variables to switch to HTTP.
77
### Requirements
88

99
- pnpm >=9.15.0
10-
- node >=22.11.0
10+
- node >=22.13.1
1111

1212
#### Node Version
1313

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "Apache-2.0",
77
"packageManager": "[email protected]",
88
"engines": {
9-
"node": ">=22.11.0",
9+
"node": ">=22.13.1",
1010
"pnpm": "9.15.0"
1111
},
1212
"private": true,

Diff for: packages/graph-explorer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.13.0",
44
"description": "Graph Explorer",
55
"engines": {
6-
"node": ">=22.11.0"
6+
"node": ">=22.13.1"
77
},
88
"type": "module",
99
"scripts": {

0 commit comments

Comments
 (0)