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

Commit

Permalink
update node to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmikechen committed Sep 23, 2023
1 parent 6ed412e commit 69cdb1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
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

0 comments on commit 69cdb1a

Please sign in to comment.