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",