Skip to content

Commit

Permalink
feat: add pnpm support (#452)
Browse files Browse the repository at this point in the history
* feat: add pnpm support

* fix lint empty line

* type in example description
  • Loading branch information
jordanpowell88 authored Jan 16, 2024
1 parent 6fe76b4 commit 258a7c7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 14 additions & 0 deletions src/examples/pnpm.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion src/jobs/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 258a7c7

Please sign in to comment.