mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-01-19 03:43:02 +08:00
Upgrade Node to v20.
This commit is contained in:
parent
b8dc5fccfb
commit
129a551a10
@ -54,7 +54,7 @@ outputs:
|
|||||||
cache-hit:
|
cache-hit:
|
||||||
description: 'A boolean value to indicate an exact match was found for the primary key'
|
description: 'A boolean value to indicate an exact match was found for the primary key'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node20'
|
||||||
main: 'dist/main/index.js'
|
main: 'dist/main/index.js'
|
||||||
post: 'dist/cleanup/index.js'
|
post: 'dist/cleanup/index.js'
|
||||||
post-if: 'success()'
|
post-if: 'success()'
|
||||||
|
32679
dist/cleanup/index.js
generated
vendored
32679
dist/cleanup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
32144
dist/main/index.js
generated
vendored
32144
dist/main/index.js
generated
vendored
File diff suppressed because one or more lines are too long
9380
package-lock.json
generated
9380
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
54
package.json
54
package.json
@ -27,33 +27,37 @@
|
|||||||
"author": "GraalVM Community",
|
"author": "GraalVM Community",
|
||||||
"license": "UPL",
|
"license": "UPL",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^3.0.4",
|
"@actions/cache": "^3.2.3",
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/exec": "^1.1.0",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^6.0.0",
|
||||||
"@actions/glob": "^0.3.0",
|
"@actions/glob": "^0.4.0",
|
||||||
"@actions/http-client": "^1.0.11",
|
"@actions/http-client": "^2.2.0",
|
||||||
"@actions/io": "^1.1.1",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^1.7.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@octokit/core": "^3.5.1",
|
"@octokit/core": "^5.1.0",
|
||||||
"@octokit/types": "^6.34.0",
|
"@octokit/types": "^12.0.0",
|
||||||
"semver": "^7.5.2",
|
"semver": "^7.5.4",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^9.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.2",
|
"@types/jest": "^29.5.11",
|
||||||
"@types/node": "^18.15.11",
|
"@types/node": "^20.11.10",
|
||||||
"@types/semver": "^7.3.13",
|
"@types/semver": "^7.5.6",
|
||||||
"@types/uuid": "^8.3.4",
|
"@types/uuid": "^9.0.8",
|
||||||
"@typescript-eslint/parser": "^5.8.1",
|
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
||||||
"@vercel/ncc": "^0.33.4",
|
"@typescript-eslint/parser": "^6.19.1",
|
||||||
"eslint": "^8.6.0",
|
"@vercel/ncc": "^0.38.1",
|
||||||
"eslint-plugin-github": "^4.3.5",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-jest": "^25.3.4",
|
"eslint-plugin-github": "^4.10.1",
|
||||||
"jest": "^29.5.0",
|
"eslint-plugin-jest": "^27.6.3",
|
||||||
|
"eslint-plugin-jsonc": "^2.13.0",
|
||||||
|
"eslint-plugin-prettier": "^5.1.3",
|
||||||
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"prettier": "2.5.1",
|
"prettier": "^3.2.4",
|
||||||
"ts-jest": "^29.1.0",
|
"prettier-eslint": "^16.3.0",
|
||||||
"typescript": "^5.0.4"
|
"ts-jest": "^29.1.2",
|
||||||
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,8 +6,7 @@ import * as io from '@actions/io'
|
|||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
import * as stream from 'stream'
|
import * as stream from 'stream'
|
||||||
import * as util from 'util'
|
import * as util from 'util'
|
||||||
import {IHeaders} from '@actions/http-client/interfaces'
|
import {IncomingHttpHeaders, OutgoingHttpHeaders} from 'http'
|
||||||
import {IncomingHttpHeaders} from 'http'
|
|
||||||
import {RetryHelper} from '@actions/tool-cache/lib/retry-helper'
|
import {RetryHelper} from '@actions/tool-cache/lib/retry-helper'
|
||||||
import {calculateSHA256} from './utils'
|
import {calculateSHA256} from './utils'
|
||||||
import {ok} from 'assert'
|
import {ok} from 'assert'
|
||||||
@ -132,7 +131,7 @@ class HTTPError extends Error {
|
|||||||
async function downloadTool(
|
async function downloadTool(
|
||||||
url: string,
|
url: string,
|
||||||
userAgent: string,
|
userAgent: string,
|
||||||
headers?: IHeaders
|
headers?: OutgoingHttpHeaders
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const dest = path.join(getTempDirectory(), uuidv4())
|
const dest = path.join(getTempDirectory(), uuidv4())
|
||||||
await io.mkdirP(path.dirname(dest))
|
await io.mkdirP(path.dirname(dest))
|
||||||
@ -169,7 +168,7 @@ async function downloadToolAttempt(
|
|||||||
url: string,
|
url: string,
|
||||||
userAgent: string,
|
userAgent: string,
|
||||||
dest: string,
|
dest: string,
|
||||||
headers?: IHeaders
|
headers?: OutgoingHttpHeaders
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
if (fs.existsSync(dest)) {
|
if (fs.existsSync(dest)) {
|
||||||
throw new Error(`Destination file path ${dest} already exists`)
|
throw new Error(`Destination file path ${dest} already exists`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user