Update recommended version to Node.js 18 (#1117)

After #1115, new Node.js versions will be able to be used for
development of the frontend. This PR changes the recommended Node.js
version to 18 (the current LTS version). I have also tested with 16 and
20 and it works.

I also took the opportunity to:

- move the build script that was at the project root to the `bin/`
folder
- update the `browserslist` to target Electron 24 (which is the version
we currently build against). This results in a slightly smaller bundle
due to no longer having to transpile optional chaining.
This commit is contained in:
Jed Fox
2023-06-10 13:12:42 -04:00
committed by GitHub
parent f06edd723d
commit c1af40ff5c
6 changed files with 17 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ runs:
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16.15.0
node-version: 18.16.0
- name: Cache
uses: actions/cache@v3
id: cache