From 2bce02aa3b50faf9c079ab7e3c87b94df5554f66 Mon Sep 17 00:00:00 2001 From: Thomas Harold Date: Wed, 17 Apr 2024 13:14:43 -0400 Subject: [PATCH] Upgrade github-app-token to Node v20 --- forks/github-app-token/action.yml | 2 +- forks/github-app-token/build.sh | 6 ++++++ forks/github-app-token/package-lock.json | 3 +++ forks/github-app-token/package.json | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 forks/github-app-token/build.sh diff --git a/forks/github-app-token/action.yml b/forks/github-app-token/action.yml index acd9411..90e6a3a 100644 --- a/forks/github-app-token/action.yml +++ b/forks/github-app-token/action.yml @@ -22,7 +22,7 @@ outputs: token: description: An installation token for the GitHub App on the requested repository. runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: unlock diff --git a/forks/github-app-token/build.sh b/forks/github-app-token/build.sh new file mode 100755 index 0000000..c8aa6cd --- /dev/null +++ b/forks/github-app-token/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "Remember to run: nvm use v20" + +npm install +npm run build diff --git a/forks/github-app-token/package-lock.json b/forks/github-app-token/package-lock.json index c3dba6c..48c995d 100644 --- a/forks/github-app-token/package-lock.json +++ b/forks/github-app-token/package-lock.json @@ -30,6 +30,9 @@ "vite-plugin-dts": "^2.3.0", "xo": "^0.56.0", "yarn-deduplicate": "^6.0.1" + }, + "engines": { + "node": "^20" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/forks/github-app-token/package.json b/forks/github-app-token/package.json index 462ef2a..39414f3 100644 --- a/forks/github-app-token/package.json +++ b/forks/github-app-token/package.json @@ -6,6 +6,9 @@ "action.yml", "dist/index.js" ], + "engines": { + "node": "^20" + }, "main": "./dist/index.js", "exports": { ".": {