mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:39:17 -05:00
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.
20 lines
442 B
YAML
20 lines
442 B
YAML
name: Setup
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.16.0
|
|
- name: Cache
|
|
uses: actions/cache@v3
|
|
id: cache
|
|
with:
|
|
path: '**/node_modules'
|
|
key: yarn-v1-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
- name: Install
|
|
run: yarn --immutable
|
|
shell: bash
|
|
if: steps.cache.outputs.cache-hit != 'true'
|