【发布时间】:2023-01-31 05:56:52
【问题描述】:
如何将 Google Cloud Build 与 Yarn 2+ 一起使用?我是否需要创建自己的节点图像来支持它,或者是否有一些简写的入口点,如 entrypoint: "yarn2"
使用 NodeJs 进行云构建:
steps:
- name: "node"
entrypoint: "yarn"
当前结果:
Step #0: Pulling image: node
Step #0: Using default tag: latest
...
Step #0: yarn run v1.22.19
【问题讨论】:
-
您是否检查过 feature request 和 Github issue link,其中建议使用 Yarn 2 的 PnP 模式,因为 Cloud Build 尚未完全支持 Yarn 2?
-
我明白了,我一定是错过了某个地方尚未正式支持 Yarn2 的信息。如果他们将其包含在他们的 Cloud Build 文档中,那就太好了。
标签: node.js yarnpkg google-cloud-build yarnpkg-v2