fix: switch Google Maps Stats workflow from npm to pnpm#860
Merged
willtheorangeguy merged 2 commits intomainfrom Mar 4, 2026
Merged
fix: switch Google Maps Stats workflow from npm to pnpm#860willtheorangeguy merged 2 commits intomainfrom
willtheorangeguy merged 2 commits intomainfrom
Conversation
Co-authored-by: willtheorangeguy <18339050+willtheorangeguy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Change workflow script to use pnpm for deployment
fix: switch Google Maps Stats workflow from npm to pnpm
Mar 4, 2026
willtheorangeguy
approved these changes
Mar 4, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the scheduled “Update Google Maps Stats” workflow to use the repository’s actual package manager (pnpm) instead of npm, aligning dependency installation and caching with pnpm-lock.yaml to prevent CI failures from lockfile/version mismatches.
Changes:
- Add
pnpm/action-setup@v4(pnpm v9) to the workflow. - Switch
setup-nodecaching fromnpmtopnpmand bump Node.js from 18 to 20. - Replace
npm ci/npm run ...withpnpm install --frozen-lockfile/pnpm run ....
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
13
to
+17
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install pnpm |
There was a problem hiding this comment.
The workflow YAML indentation for steps is invalid: list items must be nested under steps: (e.g., steps:\n - name: ...). As written, the - name: entries are aligned with steps: which will cause the workflow file to fail YAML parsing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update-google-maps-stats.ymlwas usingnpm ciagainst apackage-lock.jsonthat is out of sync with the project's actual dependency manager (pnpm). This caused the workflow to fail due to@types/nodeversion mismatches and missing lock file entries.Changes
update-google-maps-stats.ymlpnpm/action-setup@v4(version 9) before Node setup, matchingastro.ymlsetup-nodecache fromnpm→pnpm; bump Node from18→20npm ciwithpnpm install --frozen-lockfile(CI-safe, lock-respecting equivalent)npm run fetch-maps-statswithpnpm run fetch-maps-stats✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.