File tree 1 file changed +4
-19
lines changed
1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -38,25 +38,10 @@ jobs:
38
38
- name : Detect package manager
39
39
id : detect-package-manager
40
40
run : |
41
- if [ -f "${{ github.workspace }}/yarn.lock" ]; then
42
- echo "manager=yarn" >> $GITHUB_OUTPUT
43
- echo "command=install" >> $GITHUB_OUTPUT
44
- echo "runner=yarn" >> $GITHUB_OUTPUT
45
- exit 0
46
- elif [ -f "${{ github.workspace }}/package.json" ]; then
47
- echo "manager=npm" >> $GITHUB_OUTPUT
48
- echo "command=ci" >> $GITHUB_OUTPUT
49
- echo "runner=npx --no-install" >> $GITHUB_OUTPUT
50
- exit 0
51
- if [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
52
- echo "manager=pnpm" >> $GITHUB_OUTPUT
53
- echo "command=install" >> $GITHUB_OUTPUT
54
- echo "runner=pnpm" >> $GITHUB_OUTPUT
55
- exit 0
56
- else
57
- echo "Unable to determine package manager"
58
- exit 1
59
- fi
41
+ echo "manager=pnpm" >> $GITHUB_OUTPUT
42
+ echo "command=install" >> $GITHUB_OUTPUT
43
+ echo "runner=pnpm" >> $GITHUB_OUTPUT
44
+ exit 0
60
45
- name : Setup Node
61
46
uses : actions/setup-node@v4
62
47
with :
You can’t perform that action at this time.
0 commit comments