From e85196f41117eab91ccfc7a296044455058a8f4d Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Fri, 1 Dec 2023 17:15:45 -0800 Subject: [PATCH] build(node): bump the runtime version to node 20 (#267) --- action.yml | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 23fc792..7575c63 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' diff --git a/package.json b/package.json index 7433307..f622b55 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" @@ -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": {