Skip to content

Commit

Permalink
feat(lint): allow to specify node version
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Dec 15, 2023
1 parent f015911 commit 1b71cdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ This action runs the following lint checks:
| --- | --- | --- | --- |
| checkout-repo | Perform checkout as first step of action | `false` | true |
| github-token | GitHub token that can create/delete comments. Usually - 'secrets.GITHUB_TOKEN' | `true` | |
| node-version | Node version to use | `false` | 18 |
<!-- action-docs-inputs -->

<!-- action-docs-outputs -->
Expand Down
6 changes: 5 additions & 1 deletion lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
github-token:
required: true
description: GitHub token that can create/delete comments. Usually - 'secrets.GITHUB_TOKEN'
node-version:
required: false
description: Node version to use
default: "18"
runs:
using: composite
steps:
Expand All @@ -18,7 +22,7 @@ runs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ inputs.node-version }}
- name: Run npm ci if needed
if: hashFiles('package-lock.json') != ''
shell: bash
Expand Down

0 comments on commit 1b71cdb

Please sign in to comment.