Skip to content

Commit abfbbfd

Browse files
committed
Hardcoded PNPM into the workflow
1 parent c6bb55e commit abfbbfd

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/astro.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,10 @@ jobs:
3838
- name: Detect package manager
3939
id: detect-package-manager
4040
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
6045
- name: Setup Node
6146
uses: actions/setup-node@v4
6247
with:

0 commit comments

Comments
 (0)