From 0be77cbbea5066339b89a93bbf0303d23f74cb8a Mon Sep 17 00:00:00 2001 From: escapedcat Date: Thu, 26 Dec 2024 14:59:47 +0100 Subject: [PATCH 1/2] chore: switch from nvm to asdf --- .nvmrc | 1 - .tool-versions | 1 + README.md | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 .nvmrc create mode 100644 .tool-versions diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 209e3ef4..00000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -20 diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..e8fc3f8e --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 20.18.1 diff --git a/README.md b/README.md index 116cc6ee..69433ec5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Big thanks to our translators, which you can find in this [README](src/i18n/READ ### Dependencies - [Node.js](https://nodejs.org/en/download/) -- [nvm](https://github.com/nvm-sh/nvm#intro) is supported but not required. +- [asdf](https://asdf-vm.com/) is supported but not required. #### Update npm dependencies @@ -110,8 +110,8 @@ Please do not commit the above changes. ### Use a external RaspiBlitz as Backend -- (Optional): Make sure `nvm` is installed. -- (Optional): Run `nvm install 20` or if already installed `nvm use` +- (Optional): Make sure [asdf](https://asdf-vm.com/) is installed +- (Optional): Run `asdf install nodejs latest:20` - Install the dependencies with `npm install` - Change the `BACKEND_SERVER` value in [vite.config.ts](vite.config.ts) to your local RaspiBlitz - for example if your RaspiBlitz is running on local IP `192.168.1.123` then change the value to `http://192.168.1.123:80` - with `npm run start` it should now connect to your external RaspiBlitz From 0713b9f3fb5285660b935ec3c04f987f026f315d Mon Sep 17 00:00:00 2001 From: escapedcat Date: Thu, 26 Dec 2024 15:00:23 +0100 Subject: [PATCH 2/2] ci: add nodejs v22 to github action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 544c03e9..4c8e1601 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [20.x] + node-version: [20.x, 22.x] steps: - name: Checkout Repository