Compare commits

..

No commits in common. "966dfad3859a5cfc80b6e36761b0b4c7b3dd5e0c" and "aadc3a98dfd3437f8f97d436ea91b82a73dc85dd" have entirely different histories.

7 changed files with 1156 additions and 894 deletions

View File

@ -11,6 +11,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: os:
- 'ubuntu-22.04'
- 'ubuntu-20.04' - 'ubuntu-20.04'
- 'ubuntu-latest' - 'ubuntu-latest'
- 'macos-latest' - 'macos-latest'

View File

@ -14,7 +14,6 @@ jobs:
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: os:
- 'ubuntu-22.04' - 'ubuntu-22.04'
@ -25,10 +24,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v3.6.0
with: with:
node-version-file: '.nvmrc' node-version: '${{ steps.nvm.outputs.NVMRC }}'
cache: 'npm'
- run: npm ci - run: npm ci

2
.nvmrc
View File

@ -1 +1 @@
20.10.0 12.22.4

View File

@ -261,9 +261,10 @@ jobs:
hugo-version: '0.119.0' hugo-version: '0.119.0'
extended: true extended: true
- uses: actions/setup-node@v4 - name: Setup Node
uses: actions/setup-node@v3
with: with:
node-version: '20' node-version: '18'
cache: 'npm' cache: 'npm'
# The action defaults to search for the dependency file (package-lock.json, # The action defaults to search for the dependency file (package-lock.json,
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its # npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its

View File

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

2019
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,11 @@
{ {
"name": "actions-hugo", "name": "actions-hugo",
"version": "3.0.0", "version": "2.6.0",
"description": "GitHub Actions for Hugo", "description": "GitHub Actions for Hugo",
"main": "lib/index.js", "main": "lib/index.js",
"engines": { "engines": {
"node": ">=20.10.0", "node": ">=16.18.0",
"npm": ">=10.2.3" "npm": ">=8.19.0"
}, },
"scripts": { "scripts": {
"all": "npm run format:check && npm run lint && npm test", "all": "npm run format:check && npm run lint && npm test",
@ -55,11 +55,11 @@
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.20", "@types/jest": "^26.0.20",
"@types/node": "~20", "@types/node": "~12",
"@types/node-fetch": "^2.5.8", "@types/node-fetch": "^2.5.8",
"@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.38.1", "@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",