Upgrade node from 12 to 16. Ref #611

This commit is contained in:
Xinjiang Shao 2022-10-10 19:56:32 -05:00 committed by Xinjiang Shao
parent 8da14cc542
commit a28e10ed76
4 changed files with 4403 additions and 14598 deletions

2
.nvmrc
View file

@ -1 +1 @@
12.22.4 16.14.2

View file

@ -11,7 +11,7 @@ inputs:
required: false required: false
default: 'false' default: 'false'
runs: runs:
using: 'node12' using: 'node16'
main: 'lib/index.js' main: 'lib/index.js'
branding: branding:
icon: 'package' icon: 'package'

18975
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,8 +4,8 @@
"description": "GitHub Actions for Hugo", "description": "GitHub Actions for Hugo",
"main": "lib/index.js", "main": "lib/index.js",
"engines": { "engines": {
"node": ">=12.14.1", "node": ">=16.17.1",
"npm": ">=6.13.7" "npm": ">=8.15.0"
}, },
"scripts": { "scripts": {
"all": "npm run format:check && npm run lint && npm test", "all": "npm run format:check && npm run lint && npm test",
@ -50,26 +50,26 @@
"@actions/core": "^1.6.0", "@actions/core": "^1.6.0",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",
"@actions/io": "^1.1.0", "@actions/io": "^1.1.0",
"@actions/tool-cache": "^1.7.2", "@actions/tool-cache": "^2.0.1",
"node-fetch": "^2.6.1" "node-fetch": "^2.6.7"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.20", "@types/jest": "^29.1.2",
"@types/node": "~12", "@types/node": "16.11.65",
"@types/node-fetch": "^2.5.8", "@types/node-fetch": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^4.16.1", "@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1", "@typescript-eslint/parser": "^4.16.1",
"@vercel/ncc": "^0.27.0", "@vercel/ncc": "^0.27.0",
"eslint": "^7.21.0", "eslint": "^7.21.0",
"eslint-plugin-jest": "^24.1.5", "eslint-plugin-jest": "^24.1.5",
"husky": "^5.1.3", "husky": "^5.1.3",
"jest": "^26.6.3", "jest": "^29.1.2",
"jest-circus": "^26.6.3", "jest-circus": "^29.1.2",
"lint-staged": "^10.5.4", "lint-staged": "^10.5.4",
"nock": "^13.0.10", "nock": "^13.0.10",
"prettier": "2.2.1", "prettier": "2.2.1",
"standard-version": "^9.1.1", "standard-version": "^9.1.1",
"ts-jest": "^26.5.3", "ts-jest": "^29.0.3",
"typescript": "^4.2.3" "typescript": "^4.8.4"
} }
} }