Replies: 1 comment
-
Did you have any success? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I needed to run pnpm on Google Cloud Build and I was looking at this question from another person:
https://stackoverflow.com/questions/63206481/how-to-use-pnpm-with-google-cloud-build
I was able to figure out my issue right away, because I was just running
pnpm install
andpnpm build
directly, just by running them in a single command:There are docs for other CIs but Google Cloud Build is missing. I'd like to add it but am not sure my solution of running them in a single step is acceptable, and when I tried running
npm install -g pnpm
beforehand, that didn't work. I know I could use another container but I try to use official container images to reduce the amount of vetting of container images I need to do. So I may contribute to the docs when I have time, but in the meantime leave it here. Here is my build step:I didn't have a good answer for
gcloud
, until I realized that runningpnpm
in a previous step and generatingpackage-lock.json
withnpm shrinkwrap
may work. After that, I assume gcloud would use. If I give it a shot myself I'll try to update this thread.Here's a discussion about exporting
package-lock.json
which I agree is something that shouldn't be encouraged but I think in a CI that usingnpm shrinkwrap
might be a good idea.#3367
Beta Was this translation helpful? Give feedback.
All reactions