Skip to content

Commit

Permalink
feat(13-caching): add node-version input
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Nov 11, 2023
1 parent 48837dc commit b7e5185
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/13-caching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
description: Whether to execute cache step
type: boolean
default: true
node-version:
description: Node version
type: choice
options:
- 18.x
- 20.x
- 21.x
default: 20.x

jobs:
build:
Expand All @@ -20,7 +28,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: ${{ inputs.node-version }}
- name: Install dependencies
run: npm ci
- name: Testing
Expand Down

0 comments on commit b7e5185

Please sign in to comment.