From 2f6921097b4dc86a5b9fca468fabe581271e7a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 21 Oct 2023 09:28:38 +0200 Subject: [PATCH 1/2] feat: node 20 version support --- .nvmrc | 2 +- action.yml | 2 +- package-lock.json | 54 +++++++++++++++++++++++++++++++---------------- package.json | 4 ++-- tsconfig.json | 2 +- 5 files changed, 41 insertions(+), 23 deletions(-) diff --git a/.nvmrc b/.nvmrc index 6e9d5a1e..5bacb9a1 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13.1 \ No newline at end of file +20.8.1 \ No newline at end of file diff --git a/action.yml b/action.yml index c868e869..29d39034 100644 --- a/action.yml +++ b/action.yml @@ -25,6 +25,6 @@ inputs: description: 'Whether a comment should be created even if comment_tag is not found.' default: 'true' runs: - using: 'node16' + using: 'node20' main: 'lib/index.js' post: 'lib/cleanup/index.js' diff --git a/package-lock.json b/package-lock.json index 30f5a638..9feea580 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@actions/tool-cache": "^2.0.1" }, "devDependencies": { - "@tsconfig/node16": "^16.1.1", - "@types/node": "^18.16.2", + "@tsconfig/node20": "^20.1.2", + "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" @@ -187,17 +187,20 @@ "@octokit/openapi-types": "^12.11.0" } }, - "node_modules/@tsconfig/node16": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", - "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", + "node_modules/@tsconfig/node20": { + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", + "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", "dev": true }, "node_modules/@types/node": { - "version": "18.16.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.2.tgz", - "integrity": "sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==", - "dev": true + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "dev": true, + "dependencies": { + "undici-types": "~5.25.1" + } }, "node_modules/@vercel/ncc": { "version": "0.38.1", @@ -302,6 +305,12 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "node_modules/universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", @@ -492,17 +501,20 @@ "@octokit/openapi-types": "^12.11.0" } }, - "@tsconfig/node16": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.1.tgz", - "integrity": "sha512-+pio93ejHN4nINX4pXqfnR/fPLRtJBaT4ORaa5RH0Oc1zoYmo2B2koG+M328CQhHKn1Wj6FcOxCDFXAot9NhvA==", + "@tsconfig/node20": { + "version": "20.1.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.2.tgz", + "integrity": "sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==", "dev": true }, "@types/node": { - "version": "18.16.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.2.tgz", - "integrity": "sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==", - "dev": true + "version": "20.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz", + "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==", + "dev": true, + "requires": { + "undici-types": "~5.25.1" + } }, "@vercel/ncc": { "version": "0.38.1", @@ -568,6 +580,12 @@ "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true }, + "undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "universal-user-agent": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", diff --git a/package.json b/package.json index fb81e795..7d20d6f1 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "@actions/tool-cache": "^2.0.1" }, "devDependencies": { - "@tsconfig/node16": "^16.1.1", - "@types/node": "^18.16.2", + "@tsconfig/node20": "^20.1.2", + "@types/node": "^20.8.1", "@vercel/ncc": "^0.38.1", "prettier": "^3.0.3", "typescript": "^5.2.2" diff --git a/tsconfig.json b/tsconfig.json index bf8ec56d..44c2c1a2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node16/tsconfig.json", + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { "outDir": "./lib", "rootDir": "./src" From cb9f4be78695d9811c6ad130dbfc0578ba444415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Hollander?= Date: Sat, 17 Feb 2024 07:36:47 +0100 Subject: [PATCH 2/2] chore: bump to v2.5.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9feea580..00033a01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "license": "MIT", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 7d20d6f1..49db274b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "actions-comment-pull-request", - "version": "2.4.3", + "version": "2.5.0", "description": "GitHub action for commenting pull-request", "main": "lib/main.js", "scripts": {