Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

SUBMARINE-1410. Update website node to 18 #1106

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/deploy_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ name: Deploy Submarine documentation
on:
pull_request:
push:
branches: [master]
paths:
- 'website/**'

Expand All @@ -29,7 +30,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'
- name: Test Build
working-directory: ./website
run: |
Expand All @@ -42,7 +43,7 @@ jobs:
- 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
Expand Down
11 changes: 6 additions & 5 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,36 @@ This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern

## Installation

```console
```shell
# We recommend using node 18(LTS).
yarn install
```

## Local Development

```console
```shell
yarn start
```

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

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
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

## Deployment

```console
```shell
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
```

Expand Down
Loading