Skip to content

Commit 117b21f

Browse files
authored
fix: custom project Install dependencies not action dependencies (#9)
1 parent c9d9b1b commit 117b21f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/node-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
description: pass dry-run to semantic-release
2222
default: false
2323

24+
install:
25+
type: string
26+
description: 'Install dependencies script'
27+
default: 'npm i --no-package-lock --no-fund'
28+
2429
action_ref:
2530
type: string
2631
description: 'Branch name for artusjs/github-actions, for test purpose'
@@ -64,7 +69,7 @@ jobs:
6469

6570
# Install dependencies
6671
- name: Install dependencies
67-
run: npm i --no-package-lock --no-fund
72+
run: ${{ inputs.install }}
6873

6974
# Run Test Only
7075
- name: Run Test

.github/workflows/node-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
# Install dependencies
4747
- name: Install dependencies
48-
run: ${{ inputs.install }}
48+
run: npm i --no-package-lock --no-fund
4949
working-directory: action_repo/scripts/test
5050

5151
# Normalize inputs style
@@ -81,7 +81,7 @@ jobs:
8181
node-version: ${{ matrix.version }}
8282

8383
- name: Install Dependencies
84-
run: npm i --no-package-lock --no-fund
84+
run: ${{ inputs.install }}
8585

8686
- name: Run Lint
8787
run: npm run lint

0 commit comments

Comments
 (0)