Skip to content

Commit

Permalink
fix: install lts node.js by default
Browse files Browse the repository at this point in the history
  • Loading branch information
korosuke613 committed Oct 7, 2024
1 parent af00ba1 commit 67c6e6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ inputs:
description: 'Renovate git author'
required: false
default: "GitHub Action <[email protected]>"
install-lts-nodejs:
description: 'if `true`, install LTS Node.js. Because Renovate may require more than the default Node.js version of GitHub Actions.'
required: false
default: "true"

runs:
using: "composite"
Expand All @@ -54,6 +58,15 @@ runs:
# Create a path to save a action summary.
echo "summary=${{ runner.temp }}/summary.md" >> $GITHUB_OUTPUT
# Setup LTS Node.js
# Because Renovate may require more than the default Node.js version of GitHub Actions.
# see: https://github.com/cybozu/renovate-dry-run-action/issues/26
- name: Setup LTS Node.js
if: inputs.install-lts-nodejs == 'true'
uses: actions/setup-node@v4
with:
node-version: lts/*

- uses: actions/cache@v4
if: inputs.cache == 'true'
with:
Expand Down

0 comments on commit 67c6e6f

Please sign in to comment.