Skip to content

Commit

Permalink
chore: switch internal node version to 18, add asdf to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed May 30, 2023
1 parent 2cd236b commit 2df2243
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
v14:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
v16:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
v18:
runs-on: ubuntu-22.04
container:
image: "ubuntu:22.04"
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
Expand All @@ -90,6 +90,35 @@ jobs:
- name: Test
run: yarn test-ci

v20:
runs-on: ubuntu-22.04
container:
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
apt update
apt install --yes sudo
sudo apt install --yes git
sudo apt install --yes curl
curl --location https://deb.nodesource.com/setup_20.x | sudo --preserve-env bash -
sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs
- uses: actions/checkout@v3
# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'
- name: Install yarn
run: |
npm install --global yarn
node --version
yarn global add yarn@latest
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
- name: Build packages
run: yarn build
- name: Test
run: yarn test-ci

windows:
runs-on: windows-2022
steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.16.0
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ npm login
nvm use (if you have nvm installed)
```

- [nvm](https://github.com/nvm-sh/nvm)
- [asdf](https://asdf-vm.com/) is supported as well

```sh
yarn clean
yarn install
Expand Down

0 comments on commit 2df2243

Please sign in to comment.