Skip to content

Commit

Permalink
[YUNIKORN-1974] Move to Node.js 18 (#334)
Browse files Browse the repository at this point in the history
Node.js 16 has reached its End-of-Life as of September 11, 2023.
Moving to Node 18.17 as the current latest LTS version

Closes: #334

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
doupache authored and wilfred-s committed Oct 17, 2023
1 parent 70ad1f0 commit 8e6e72a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: "Build and run website locally"
working-directory: './yunikorn-master'
run: |
NODE_VERSION=$(cat .nvmrc) && NODE_VERSION=${NODE_VERSION:-16.14}
NODE_VERSION=$(cat .nvmrc) && NODE_VERSION=${NODE_VERSION:-18.17}
git log master --pretty=format:"Auto refresh: %s" -n 1 > ../asf-site-commit.txt
docker build -t yunikorn/yunikorn-website:2.0.0 . --build-arg NODE_VERSION=${NODE_VERSION}
docker run --name yunikorn-site -d -p 3000:3000 yunikorn/yunikorn-website:2.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
run: ./check_license.sh
- name: Build the site image
run: |
NODE_VERSION=$(cat .nvmrc) && NODE_VERSION=${NODE_VERSION:-16.14}
NODE_VERSION=$(cat .nvmrc) && NODE_VERSION=${NODE_VERSION:-18.17}
docker build -t yunikorn/yunikorn-website:2.0.0 . --build-arg NODE_VERSION=${NODE_VERSION}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
18.17
4 changes: 2 additions & 2 deletions local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function node_version() {
if [ -r ${NV_FILE} ]; then
NODE_VERSION=$(<"$NV_FILE")
fi
# docusausrus 2.0.0-beta.18 and later ony work with node 16.14 later, use it as the default
NODE_VERSION=${NODE_VERSION:-16.14}
# docusausrus 2.0.0-beta.18 and later only work with node 16.14 later, we use latest LTS as default.
NODE_VERSION=${NODE_VERSION:-18.17}
}

function image_build() {
Expand Down

0 comments on commit 8e6e72a

Please sign in to comment.