Skip to content

Commit adcc97f

Browse files
committed
feat: add support for pnpm
1 parent 5457044 commit adcc97f

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

action.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,35 @@ runs:
4747
with:
4848
show-progress: false
4949

50+
- name: ❓ Determine Package Manager
51+
shell: bash
52+
id: package-manager
53+
run: |
54+
if [ -f pnpm-lock.yaml ]; then
55+
echo "{name}={pnpm}" >> $GITHUB_STATE
56+
else
57+
echo "{name}={npm}" >> $GITHUB_STATE
58+
fi
59+
60+
- name: 📦 Setup PNPM
61+
if: steps.package-manager.outputs.name == 'pnpm'
62+
uses: pnpm/action-setup@v4
63+
with:
64+
version: 9
65+
5066
- name: ⎔ Setup Node.js
5167
uses: actions/setup-node@v4
5268
with:
5369
node-version: lts/*
54-
cache: npm
70+
cache: steps.package-manager.outputs.name
5571

5672
- name: 📥 Download dependencies
5773
shell: bash
58-
run: npm ci
74+
run: ${{ steps.package-manager.outputs.name }} install
5975

6076
- name: 👥 Copy ArcGIS assets
6177
shell: bash
62-
run: npm run copy:arcgis --if-present
78+
run: ${{ steps.package-manager.outputs.name }} run copy:arcgis --if-present
6379

6480
- name: 🗝️ Authenticate to Google Cloud
6581
id: auth

0 commit comments

Comments
 (0)