[ENHANCEMENT] Avoid GitHub action failure due to broken pnpm-lock.yaml
See original GitHub issueI noticed a few errors occurred in the GitHub Actions because the pnpm-lock.yaml
file was broken.
This may have happened due to merges of different branches while both updated the lockfile.
There are two consequences that emerge from this:
- Broken
pnpm-lock.yaml
onmaster
- GitHub action fails and components are not published
In order to fix #2
, we can add the --fix-lockfile
tag to avoid the action failure.
For #1
, I think the lockfile would eventually be corrected after some merges, but we may think of a way to automatically update and commit after (or before) merging with master.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
turbo prune produces a broken pnpm-lock.yaml lockfile with ...
I updated the PR to now have better error messaging and it should handle injected dev and optional dependencies now.
Read more >"Broken lockfile: no entry for" when 'pnpm install --no-optional'
I'm having this issue as well, pnpm complains about not finding a dep on the lock file but the lock file has that...
Read more >Faulty exception message when using pnpm #7182 - GitHub
For missing packages when using pnpm the error message says to remove package-lock.json, also to perhaps execute npm install both of which ...
Read more >Stop pnpm from generating pnpm-lock.yaml #4970 - GitHub
I want to use pnpm to save space but don't want to rewrite other people's repositories to use pnpm. Is there a way...
Read more >`pnpm i` followed by `pnpm i --frozen-lockfile` complains about ...
The error occurs in the projects that have peerDependencies in the package.json. When I remove peerDependencies , the install succeeds. I even ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, done
Could we also run
pnpm install
with the--fix-lockfile
option in thepre-push
/post-merge
git hooks so the lockfile is automatically fixed whenmaster
is merged into a branch?