File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
actions/get-package-manager Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,20 @@ runs:
26
26
shell : bash
27
27
run : |
28
28
# Yarn
29
- if [[ -f "yarn.lock" ] ]; then
30
- echo "package-manager=yarn" >> $GITHUB_OUTPUT
31
- echo "cache-dependency-path=**/yarn.lock" >> $GITHUB_OUTPUT
32
- echo "install-command=yarn install --frozen-lockfile" >> $GITHUB_OUTPUT
33
- echo "run-script-command=yarn" >> $GITHUB_OUTPUT
29
+ if [ -f "yarn.lock" ]; then
30
+ echo "package-manager=yarn" >> " $GITHUB_OUTPUT"
31
+ echo "cache-dependency-path=**/yarn.lock" >> " $GITHUB_OUTPUT"
32
+ echo "install-command=yarn install --frozen-lockfile" >> " $GITHUB_OUTPUT"
33
+ echo "run-script-command=yarn" >> " $GITHUB_OUTPUT"
34
34
exit 0
35
35
fi
36
36
37
37
# NPM
38
- if [[ -f "package-lock.json" ] ]; then
39
- echo "package-manager=npm" >> $GITHUB_OUTPUT
40
- echo "cache-dependency-path=**/package-lock.json" >> $GITHUB_OUTPUT
41
- echo "install-command=npm ci" >> $GITHUB_OUTPUT
42
- echo "run-script-command=npm run" >> $GITHUB_OUTPUT
38
+ if [ -f "package-lock.json" ]; then
39
+ echo "package-manager=npm" >> " $GITHUB_OUTPUT"
40
+ echo "cache-dependency-path=**/package-lock.json" >> " $GITHUB_OUTPUT"
41
+ echo "install-command=npm ci" >> " $GITHUB_OUTPUT"
42
+ echo "run-script-command=npm run" >> " $GITHUB_OUTPUT"
43
43
exit 0
44
44
fi
45
45
You can’t perform that action at this time.
0 commit comments