From 853092ea8a015437024f79fd1c129a86dafba8e4 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Fri, 1 Dec 2023 16:58:46 -0800 Subject: [PATCH 1/3] bump node version of package to >=20 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 74333073..4d78817b 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "url": "https://github.com/slackapi/slack-github-action/issues" }, "engines": { - "node": ">=16.0.0", - "npm": ">=7.10.0" + "node": ">=20.0.0", + "npm": ">=10.2.0" }, "homepage": "https://github.com/slackapi/slack-github-action#readme", "dependencies": { From 006e5923e193edca450fc3e9dc3631ccc6d5989a Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Fri, 1 Dec 2023 16:59:00 -0800 Subject: [PATCH 2/3] set node version of action to 20 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 23fc7929..7575c637 100644 --- a/action.yml +++ b/action.yml @@ -26,5 +26,5 @@ outputs: channel_id: # Id of the channel. If channel name was used as input we can get ID from output for later use when updating message or posting to thread. description: 'The channel id of the message that was posted into Slack when using bot token' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' From 1d4221a13e558ebbefe4b67fc3c9ce78b2d84863 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Fri, 1 Dec 2023 16:59:47 -0800 Subject: [PATCH 3/3] bump local test platform version to node 20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d78817b..f622b55b 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "lint": "eslint .", - "local": "act public --eventpath .github/workflows/local/event.json --secret-file .github/workflows/local/.env", + "local": "act public --eventpath .github/workflows/local/event.json --secret-file .github/workflows/local/.env --platform ubuntu-latest=node:20-buster", "test:mocha": "nyc mocha --config .mocharc.json test/*-test.js", "test": "npm run lint && npm run test:mocha", "build": "npx @vercel/ncc build src/index.js --license licenses.txt"