From 1f0038845dd8e085576d82bd123fe422e51f51af Mon Sep 17 00:00:00 2001 From: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:16:47 -0700 Subject: [PATCH] Update node version for `undici` proxy support --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- .node-version | 1 - package.json | 3 +++ 4 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 .node-version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbce170..dc35d00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version-file: .node-version + node-version-file: package.json cache: 'npm' - run: npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab2b03f..9754ff8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version-file: .node-version + node-version-file: package.json cache: 'npm' - run: npm ci diff --git a/.node-version b/.node-version deleted file mode 100644 index f3f52b4..0000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -20.9.0 diff --git a/package.json b/package.json index 91d162e..9f89c3e 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "type": "module", "version": "1.10.3", "description": "GitHub Action for creating a GitHub App Installation Access Token", + "engines": { + "node": ">=20.16.0 <21" + }, "scripts": { "build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20 --packages=bundle", "test": "c8 --100 ava tests/index.js",