SUBMARINE-1410. Update website node to 18
### What is this PR for?
Update website node to 18(lts)
### What type of PR is it?
Documentation
### Todos
* [x] - Set node to 18 in git workflow
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-1410
### How should this be tested?
CI
### Screenshots (if appropriate)
### Questions:
* Do the license files need updating? No
* Are there breaking changes for older versions? No
* Does this need new documentation? No
Author: cdmikechen <cdmikechen@apache.org>
Signed-off-by: cdmikechen <cdmikechen@apache.org>
Closes #1106 from cdmikechen/SUBMARINE-1410 and squashes the following commits:
69cdb1ad [cdmikechen] update node to 18
diff --git a/.github/workflows/deploy_website.yml b/.github/workflows/deploy_website.yml
index 35faaf6..47a3e9d 100644
--- a/.github/workflows/deploy_website.yml
+++ b/.github/workflows/deploy_website.yml
@@ -19,6 +19,7 @@
on:
pull_request:
push:
+ branches: [master]
paths:
- 'website/**'
@@ -29,7 +30,7 @@
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
- node-version: '14'
+ node-version: '18'
- name: Test Build
working-directory: ./website
run: |
@@ -42,7 +43,7 @@
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
- node-version: '14'
+ node-version: '18'
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
diff --git a/website/README.md b/website/README.md
index 9e2336d..db11993 100644
--- a/website/README.md
+++ b/website/README.md
@@ -23,13 +23,14 @@
## Installation
-```console
+```shell
+# We recommend using node 18(LTS).
yarn install
```
## Local Development
-```console
+```shell
yarn start
```
@@ -37,13 +38,13 @@
If you want to switch to zh-cn, you can use the following command to start.
-```console
+```shell
yarn start -- --locale zh-cn
```
## Build
-```console
+```shell
yarn build
```
@@ -51,7 +52,7 @@
## Deployment
-```console
+```shell
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
```