Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example CI config for AWS CodeBuild #296

Open
dwiyatci opened this issue Jul 26, 2022 · 0 comments
Open

Example CI config for AWS CodeBuild #296

dwiyatci opened this issue Jul 26, 2022 · 0 comments

Comments

@dwiyatci
Copy link

Hi, since there is no example config for integrating pnpm with CodeBuild listed yet in https://pnpm.io/continuous-integration, I wonder if anybody's ever done it before (and probably could suggest an "ideal" config for it). So far I've come up with the following config (simplified) but just not 100% sure if setting the pnpm's home/store somewhere in the current workdir is a good idea or not:

version: 0.2
phases:
  install:
    runtime-versions:
      nodejs: latest
    commands:
      - curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
      - pnpm config set store-dir pnpm/store
  pre_build:
    on-failure: ABORT
    commands:
      - WORKDIR=$(pwd)
      - PNPM_HOME="${WORKDIR}/pnpm"
  build:
    commands:
      - pnpm install

Thank you!! 🙇🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant