File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121
121
steps :
122
122
- checkout
123
123
- core/run_script :
124
- pkg_manager : pnpm
124
+ pkg_manager : pnpm@latest-10
125
125
pkg_json_dir : ~/project/sample
126
126
script : test --json --outputFile=results_pnpm.json
127
127
- run :
Original file line number Diff line number Diff line change 2
2
3
3
echo " Running custom script from package.json at ${PWD} "
4
4
5
+ PKG_MANAGER=$( circleci env subst " ${PARAM_STR_PKG_MANAGER} " )
6
+ PKG_MANAGER_REGEX=" ^(npm|pnpm)(@.+)?$"
7
+
8
+ if [[ " ${PKG_MANAGER} " =~ ${PKG_MANAGER_REGEX} ]]; then
9
+ PKG_MANAGER=" ${BASH_REMATCH[1]} "
10
+ else
11
+ echo " Cannot run script with unsupported package manager '${PKG_MANAGER} '"
12
+
13
+ exit 1
14
+ fi
15
+
5
16
set -x
6
- eval " ${PARAM_STR_PKG_MANAGER } " run " ${PARAM_STR_SCRIPT} "
17
+ eval " ${PKG_MANAGER } " run " ${PARAM_STR_SCRIPT} "
7
18
set +x
You can’t perform that action at this time.
0 commit comments