chore: bump node16 to node20 (#1067)

This commit is contained in:
Sukka 2024-02-14 15:44:52 +08:00 committed by GitHub
parent cdc09a3baa
commit 4eb285e828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 8 deletions

View File

@ -31,8 +31,7 @@ jobs:
- uses: peaceiris/workflows/setup-node@v0.19.1 - uses: peaceiris/workflows/setup-node@v0.19.1
with: with:
node-version: "18" node-version-file: ".nvmrc"
# node-version-file: ".nvmrc"
- name: Dump version - name: Dump version
run: | run: |

2
.nvmrc
View File

@ -1 +1 @@
16.20.2 20.11.0

View File

@ -2,7 +2,7 @@ name: 'GitHub Pages action'
description: 'GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.' description: 'GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.'
author: 'peaceiris' author: 'peaceiris'
runs: runs:
using: 'node16' using: 'node20'
main: 'lib/index.js' main: 'lib/index.js'
branding: branding:
icon: 'upload-cloud' icon: 'upload-cloud'

4
package-lock.json generated
View File

@ -40,8 +40,8 @@
"typescript": "^4.9.4" "typescript": "^4.9.4"
}, },
"engines": { "engines": {
"node": ">=v16.19.0", "node": ">=v20.11.0",
"npm": ">=8.0.0" "npm": ">=10.2.4"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {

View File

@ -4,8 +4,8 @@
"description": "GitHub Actions for GitHub Pages", "description": "GitHub Actions for GitHub Pages",
"main": "lib/index.js", "main": "lib/index.js",
"engines": { "engines": {
"node": ">=v16.19.0", "node": ">=v20.11.0",
"npm": ">=8.0.0" "npm": ">=10.2.4"
}, },
"scripts": { "scripts": {
"postinstall": "npx husky install", "postinstall": "npx husky install",