Skip to main content
Version: 4.x

Continuous Integration

pnpm can easily be used in various continuous integration systems.

Travis#

On Travis CI, you can use pnpm for installing your dependencies by adding this to your .travis.yml file:

cache:  npm: false  directories:    - "~/.pnpm-store"before_install:  - curl -L https://unpkg.com/@pnpm/self-installer | node  - pnpm config set store-dir ~/.pnpm-storeinstall:  - pnpm install

Semaphore#

On Semaphore, you can use pnpm for installing and caching your dependencies by adding this to your .semaphore/semaphore.yml file:

version: v1.0name: Semaphore CI pnpm exampleagent:  machine:    type: e1-standard-2    os_image: ubuntu1804blocks:  - name: Install dependencies    task:      jobs:        - name: pnpm install          commands:            - curl -L https://unpkg.com/@pnpm/self-installer | node            - checkout            - cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-master            - pnpm install            - cache store node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json) node_modules

AppVeyor#

On AppVeyor, you can use pnpm for installing your dependencies by adding this to your appveyor.yml:

install:  - ps: Install-Product node $env:nodejs_version  - curl -L https://unpkg.com/@pnpm/self-installer | node  - pnpm install

Sail CI#

On Sail CI, you can use pnpm for installing your dependencies by adding this to your .sail.yml file:

install:  image: znck/pnpm:latest  command:    - pnpm  args:    - install

To get the exact Node version and pnpm version you require you can always make your own Docker image and push to Docker Hub.