Skip to content

Commit ab6203d

Browse files
Merge pull request #61 from MatteoPologruto/install-npm-deps
Bump `check-npm-dependencies` workflow's related task
2 parents 64e2156 + 7f9d7c0 commit ab6203d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Taskfile.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@ vars:
66
SCHEMA_DRAFT_4_AJV_CLI_VERSION: 3.3.0
77

88
tasks:
9+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-npm-dependencies-task/Taskfile.yml
10+
general:prepare-deps:
11+
desc: Prepare project dependencies for license check
12+
deps:
13+
- task: npm:install-deps
14+
915
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
1016
general:cache-dep-licenses:
1117
desc: Cache dependency license metadata
18+
deps:
19+
- task: general:prepare-deps
1220
cmds:
1321
- |
1422
if ! which licensed &>/dev/null; then
1523
if [[ {{OS}} == "windows" ]]; then
1624
echo "Licensed does not have Windows support."
1725
echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
1826
else
19-
echo "licensed not found or not in PATH. Please install: https://github.com/github/licensed#as-an-executable"
27+
echo "licensed not found or not in PATH."
28+
echo "Please install: https://github.com/github/licensed#as-an-executable"
2029
fi
2130
exit 1
2231
fi

0 commit comments

Comments
 (0)