File tree 1 file changed +19
-3
lines changed
1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,35 @@ runs:
47
47
with :
48
48
show-progress : false
49
49
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
+
50
66
- name : ⎔ Setup Node.js
51
67
uses : actions/setup-node@v4
52
68
with :
53
69
node-version : lts/*
54
- cache : npm
70
+ cache : steps.package-manager.outputs.name
55
71
56
72
- name : 📥 Download dependencies
57
73
shell : bash
58
- run : npm ci
74
+ run : ${{ steps.package-manager.outputs.name }} install
59
75
60
76
- name : 👥 Copy ArcGIS assets
61
77
shell : bash
62
- run : npm run copy:arcgis --if-present
78
+ run : ${{ steps.package-manager.outputs.name }} run copy:arcgis --if-present
63
79
64
80
- name : 🗝️ Authenticate to Google Cloud
65
81
id : auth
You can’t perform that action at this time.
0 commit comments