How do I use Google Cloud Build with Yarn 2+? Do I need to create my own node image to support this or is there some shorthanded entrypoint like entrypoint: "yarn2"
Cloud Build with NodeJs:
steps:
- name: "node"
entrypoint: "yarn"
Currently results in:
Step #0: Pulling image: node
Step #0: Using default tag: latest
...
Step #0: yarn run v1.22.19
Posting as a community wiki, as per previous comment, Yarn 2 is not yet fully supported on Google Cloud Build. It is suggested to use Yarn 2's PnP mode based on these documentation posted in Google Cloud feature request and Github issue link.