N
Nuxt2y ago
toni

Problem with GitHub actions

I basically copied the nuxt/framework config for GitHub actions to build, lint, and typecheck my project, but all jobs fail with
ERR_PNPM_PREPARE_PKG_FAILURE  Command failed with exit code 1: npm install
ERR_PNPM_PREPARE_PKG_FAILURE  Command failed with exit code 1: npm install
See here: https://github.com/toniengelhardt/m3tadata/actions/runs/3802847961/jobs/6468721641 The project uses pnpm and not npm, so I'm a bit confused why it wants to execute npm install at all. What am I missing?
GitHub
Update and rename eslint.yml to ci.yml · toniengelhardt/m3tadata@4d...
Open-source web3 analytics based on Vue, Nuxt, and Ethers - Update and rename eslint.yml to ci.yml · toniengelhardt/m3tadata@4d0a397
3 Replies
Orbviox
Orbviox2y ago
Hopefully you've not directly copied without understanding how the nuxt/framework pipeline works - that is a big monorepo, but your YAML seems fine - errors like these can get frustrating. Even though nuxt/framework doesn't use this format, I see pnpm docs to setup pnpm using pnpm/action-setup: https://pnpm.io/continuous-integration#github-actions (but if your CI still has pnpm running, it shouldn't be required) What I did discover is this issue - https://github.com/pnpm/pnpm/issues/5845 (seems very recent) Seems to be in v7.20.0!
Orbviox
Orbviox2y ago
https://github.com/nuxt/framework/blob/main/package.json#L79 The repo is on 7.19.0 while yours is latest (7.21.0)
GitHub
framework/package.json at main · nuxt/framework
The Intuitive Web Framework, based on Vue 3. Contribute to nuxt/framework development by creating an account on GitHub.
toni
toniOP2y ago
Thanks so much @Orbviox, it was indeed the pnpm version. I somehow didn't manage to find the issue you posted... 🙏🏽 🙏🏽 🙏🏽
Want results from more Discord servers?
Add your server