最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google cloud platform - Alternatives for using PNPM in a cloudbuild CI pipeline - Stack Overflow

programmeradmin1浏览0评论

I'd like to use pnpm in my CI cloudbuild pipeline. But, does that mean that i have to install it in every step? Since steps in cloudbuild are indepedent from each other. What are the alternatives?

steps:
  - id: 'Node packages installing'
    name: ${_NODE_VERSION}
    entrypoint: 'bash'
    args:
      - "-c"
      - |
        npm install -g ${_PNPM_VERSION}
        pnpm install
  - name: ${_NODE_VERSION}
    entrypoint: 'bash'
    args:
      - "-c"
      - |
        npm install -g ${_PNPM_VERSION}
        pnpm run test

I'd like to use pnpm in my CI cloudbuild pipeline. But, does that mean that i have to install it in every step? Since steps in cloudbuild are indepedent from each other. What are the alternatives?

steps:
  - id: 'Node packages installing'
    name: ${_NODE_VERSION}
    entrypoint: 'bash'
    args:
      - "-c"
      - |
        npm install -g ${_PNPM_VERSION}
        pnpm install
  - name: ${_NODE_VERSION}
    entrypoint: 'bash'
    args:
      - "-c"
      - |
        npm install -g ${_PNPM_VERSION}
        pnpm run test

Share Improve this question asked Feb 7 at 19:55 LEVI JOEL CASTILLON URQUIZALEVI JOEL CASTILLON URQUIZA 112 bronze badges New contributor LEVI JOEL CASTILLON URQUIZA is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

I'd say that you need to persist the package (i.e. pnpm) as volumes, but you need to validate where is pnpm installed within the filesystem of the running pipeline on Cloud Build.

PD: I'm supposing you are installing globally pnpm.

发布评论

评论列表(0)

  1. 暂无评论