From b7e5185350c4d022d8ee329db69f42d9009e4983 Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Sat, 11 Nov 2023 17:53:20 +0100 Subject: [PATCH] feat(13-caching): add node-version input --- .github/workflows/13-caching.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/13-caching.yaml b/.github/workflows/13-caching.yaml index f1375f7..b05ca5a 100644 --- a/.github/workflows/13-caching.yaml +++ b/.github/workflows/13-caching.yaml @@ -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: @@ -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