Skip to content

Commit c9d9b1b

Browse files
authored
feat: support custom install script (#7)
1 parent a3c42b9 commit c9d9b1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/node-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
type: string
1313
description: 'Node.js Version, such as 16, 18'
1414
default: '16, 18'
15+
16+
install:
17+
type: string
18+
description: 'Install dependencies script'
19+
default: 'npm i --no-package-lock --no-fund'
1520

1621
action_ref:
1722
type: string
@@ -40,7 +45,7 @@ jobs:
4045

4146
# Install dependencies
4247
- name: Install dependencies
43-
run: npm i --no-package-lock --no-fund --omit=dev
48+
run: ${{ inputs.install }}
4449
working-directory: action_repo/scripts/test
4550

4651
# Normalize inputs style

0 commit comments

Comments
 (0)