Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for pnpm #77

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,37 @@ runs:
with:
show-progress: false

- name: ❓ Determine Package Manager
shell: bash
id: package-manager
run: |
if [ -f pnpm-lock.yaml ]; then
echo "Using PNPM"
echo "name=pnpm" >> $GITHUB_OUTPUT
else
echo "Using NPM"
echo "name=npm" >> $GITHUB_OUTPUT
fi

- name: 📦 Setup PNPM
if: steps.package-manager.outputs.name == 'pnpm'
uses: pnpm/action-setup@v4
with:
version: 9

- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
cache: ${{ steps.package-manager.outputs.name }}

- name: 📥 Download dependencies
shell: bash
run: npm ci
run: ${{ steps.package-manager.outputs.name }} install

- name: 👥 Copy ArcGIS assets
shell: bash
run: npm run copy:arcgis --if-present
run: ${{ steps.package-manager.outputs.name }} run copy:arcgis --if-present

- name: 🗝️ Authenticate to Google Cloud
id: auth
Expand Down
Loading