diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index eeae154..da5cf74 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -11,7 +11,6 @@ jobs: strategy: matrix: os: - - 'ubuntu-22.04' - 'ubuntu-20.04' - 'ubuntu-latest' - 'macos-latest' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a61b1f0..407437c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,14 +24,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "::set-output name=NVMRC::$(cat .nvmrc)" - id: nvm - - - name: Setup Node - uses: actions/setup-node@v3.6.0 + - uses: actions/setup-node@v4 with: - node-version: '${{ steps.nvm.outputs.NVMRC }}' + node-version-file: '.nvmrc' + cache: 'npm' - run: npm ci diff --git a/README.md b/README.md index 407439f..856dfeb 100644 --- a/README.md +++ b/README.md @@ -261,10 +261,9 @@ jobs: hugo-version: '0.119.0' extended: true - - name: Setup Node - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'npm' # 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 diff --git a/action.yml b/action.yml index 30db738..8dcf0cb 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: required: false default: 'false' runs: - using: 'node16' + using: 'node20' main: 'lib/index.js' branding: icon: 'package' diff --git a/package-lock.json b/package-lock.json index c8385c4..f7c5465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "actions-hugo", - "version": "2.5.0", + "version": "2.6.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -36,8 +36,8 @@ "typescript": "^4.2.3" }, "engines": { - "node": ">=16.18.0", - "npm": ">=8.19.0" + "node": ">=20.10.0", + "npm": ">=10.2.3" } }, "node_modules/@actions/core": {