From 258a7c7e640fd503a29e16846e2a49a201e88a65 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 16 Jan 2024 09:42:16 -0500 Subject: [PATCH] feat: add pnpm support (#452) * feat: add pnpm support * fix lint empty line * type in example description --- src/commands/install.yml | 2 +- src/examples/pnpm.yml | 14 ++++++++++++++ src/jobs/run.yml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/examples/pnpm.yml diff --git a/src/commands/install.yml b/src/commands/install.yml index 465416af..ab6fc9f0 100644 --- a/src/commands/install.yml +++ b/src/commands/install.yml @@ -45,7 +45,7 @@ parameters: default: "" package-manager: type: enum - enum: ["npm", "yarn", "yarn-berry"] + enum: ["npm", "yarn", "yarn-berry", "pnpm"] default: "npm" description: Select the default node package manager to use. NPM v5+ Required. diff --git a/src/examples/pnpm.yml b/src/examples/pnpm.yml new file mode 100644 index 00000000..a979d63f --- /dev/null +++ b/src/examples/pnpm.yml @@ -0,0 +1,14 @@ +description: > + Runs Cypress tests using pnpm. + Installs dependencies and caches NPM modules and the Cypress binary. +usage: + version: 2.1 + orbs: + cypress: cypress-io/cypress@3 + workflows: + use-my-orb: + jobs: + - cypress/run: + package-manager: "pnpm" + start-command: "pnpm start" + install-command: "pnpm install --frozen-lockfile" diff --git a/src/jobs/run.yml b/src/jobs/run.yml index b77989b3..6449669b 100644 --- a/src/jobs/run.yml +++ b/src/jobs/run.yml @@ -49,7 +49,7 @@ parameters: default: "" package-manager: type: enum - enum: ["npm", "yarn", "yarn-berry"] + enum: ["npm", "yarn", "yarn-berry", "pnpm"] default: "npm" description: Select the default node package manager to use. NPM v5+ Required. start-command: