Skip to content

Commit 01a0429

Browse files
authored
fix: Make Node.js version a string (#3)
1 parent 839ebfc commit 01a0429

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
node-version:
77
required: false
8-
default: '24.x'
8+
default: '24'
99
type: string
1010
description: Node.js version to use for the build.
1111
pwsh:
@@ -39,15 +39,15 @@ jobs:
3939
name: Build & Test
4040
runs-on: ubuntu-latest
4141
steps:
42-
- name: Checkout Code
43-
uses: actions/checkout@v4
44-
4542
- name: Set Node.js v${{ inputs.node-version }} Up
4643
uses: actions/setup-node@v4
4744
with:
4845
node-version: ${{ inputs.node-version }}
4946
registry-url: 'https://registry.npmjs.org/'
5047

48+
- name: Checkout Code
49+
uses: actions/checkout@v4
50+
5151
- name: Install PowerShell
5252
if: inputs.pwsh
5353
uses: PSModule/Install-PowerShell@v1

.github/workflows/npm-test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
description: Reference (e.g. branch, tag, commit SHA).
1010
node-version:
1111
required: false
12-
default: 24
13-
type: number
12+
default: '24'
13+
type: string
1414
description: Node.js version to use for the build.
1515
pwsh:
1616
required: false
@@ -46,9 +46,7 @@ jobs:
4646

4747
- name: Checkout Code
4848
uses: actions/checkout@v4
49-
with:
50-
ref: ${{ inputs.ref }}
51-
49+
5250
- name: Install PowerShell
5351
if: inputs.pwsh
5452
uses: PSModule/Install-PowerShell@v1

0 commit comments

Comments
 (0)