A local-first personal finance app
change minimum version of Node.js to version 20 (#4978)
Matt Fiddaman6d921a48b609
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex eb0cd07a65..829ae23285 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -16,17 +16,21 @@ runs:- name: Install nodeuses: actions/setup-node@v4with:- node-version: 18.16.0+ node-version: 20- name: Install yarnrun: npm install -g yarnshell: bashif: ${{ env.ACT }}+ - name: Get Node version+ id: get-node+ run: echo "version=$(node -v)" >> "$GITHUB_OUTPUT"+ shell: bash- name: Cacheuses: actions/cache@v4id: cachewith:path: ${{ format('{0}/**/node_modules', inputs.working-directory) }}- key: yarn-v1-${{ runner.os }}-${{ hashFiles(format('{0}/.nvmrc', inputs.working-directory)) }}-${{ hashFiles(format('{0}/**/yarn.lock', inputs.working-directory)) }}+ key: yarn-v1-${{ runner.os }}-${{ steps.get-node.outputs.version }}-${{ hashFiles(format('{0}/**/yarn.lock', inputs.working-directory)) }}- name: Installworking-directory: ${{ inputs.working-directory }}run: yarn --immutablediff --git a/.github/workflows/check.yml b/.github/workflows/check.ymlindex d2cee1445a..ee9c60da13 100644--- a/.github/workflows/check.yml+++ b/.github/workflows/check.yml@@ -43,6 +43,6 @@ jobs:- uses: actions/checkout@v4- uses: actions/setup-node@v4with:- node-version: '19'+ node-version: 20- name: Check migrationsrun: node ./.github/actions/check-migrations.jsdiff --git a/.github/workflows/issues-feature-implemented.yml b/.github/workflows/issues-feature-implemented.ymlindex a7ab00ade4..15301dec6f 100644--- a/.github/workflows/issues-feature-implemented.yml+++ b/.github/workflows/issues-feature-implemented.yml@@ -27,7 +27,7 @@ jobs:- uses: actions/checkout@v4- uses: actions/setup-node@v4with:- node-version: '19'+ node-version: 20- name: Handle feature requestsrun: node .github/actions/handle-feature-requests.jsenv:diff --git a/.github/workflows/publish-npm-packages.yml b/.github/workflows/publish-npm-packages.ymlindex b5dfb491a0..71cd7454da 100644--- a/.github/workflows/publish-npm-packages.yml+++ b/.github/workflows/publish-npm-packages.yml@@ -56,7 +56,7 @@ jobs:- name: Setup node and npm registryuses: actions/setup-node@v4with:- node-version: '20.x'+ node-version: 20registry-url: 'https://registry.npmjs.org'- name: Publish Webdiff --git a/.nvmrc b/.nvmrcindex 8ddbc0c64a..fed2115258 100644--- a/.nvmrc+++ b/.nvmrc@@ -1 +1 @@-v18.16.0+v20/*diff --git a/package.json b/package.jsonindex 143a2b257a..5e5fb2b800 100644--- a/package.json+++ b/package.json@@ -83,7 +83,7 @@"rollup": "4.40.1"},"engines": {- "node": ">=18.0.0"+ "node": ">=20"},"lint-staged": {"*.{js,jsx,ts,tsx,md,json,yml}": [diff --git a/packages/api/package.json b/packages/api/package.jsonindex e8c8c01539..5e70666888 100644--- a/packages/api/package.json+++ b/packages/api/package.json@@ -4,7 +4,7 @@"license": "MIT","description": "An API for Actual","engines": {- "node": ">=18.12.0"+ "node": ">=20"},"main": "dist/index.js","types": "@types/index.d.ts",diff --git a/upcoming-release-notes/4978.md b/upcoming-release-notes/4978.mdnew file mode 100644index 0000000000..f144206645--- /dev/null+++ b/upcoming-release-notes/4978.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [matt-fidd]+---++Change minimum version of Node.js to version 20