versioned_docs_archived/version-3.x/continuous-integration.md
pnpm can easily be used in various continuous integration systems.
On Travis CI, you can use pnpm for installing your dependencies by adding this to your .travis.yml file:
cache:
npm: false
before_install:
- curl -L https://unpkg.com/@pnpm/self-installer | node
install:
- pnpm install
On Semaphore, you can use pnpm for installing and caching your dependencies by adding this to your .semaphore/semaphore.yml file:
version: v1.0
name: Semaphore CI pnpm example
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- 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
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
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.