Skip to content

Commit 7f9ebc5

Browse files
committed
rebasing on master, updating with pnpm version check, fixing example to work as is not needed
1 parent 0f31591 commit 7f9ebc5

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.circleci/test-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ workflows:
103103
name: Pnpm Example
104104
working-directory: examples/pnpm-install
105105
cypress-cache-key: cypress-cache{{ arch }}-{{ checksum "examples/pnpm-install/package.json" }}
106-
post-install: "./check-yarn-version.sh 1.22.5 && npx cypress install"
106+
post-install: "./check-pnpm-version.sh 9.7.1 && npx cypress install"
107107
package-manager: "pnpm"
108-
package-manager-version: "1.22.5"
108+
package-manager-version: "9.7.1"
109109
- cypress/run:
110110
filters: *filters
111111
name: Custom Install Example
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
# Check if a version parameter is provided
4+
if [ -z "$1" ]; then
5+
echo "Usage: $0 <version>"
6+
exit 1
7+
fi
8+
9+
VERSION=$1
10+
11+
if ! pnpm --version | grep -q "$VERSION"; then
12+
echo "pnpm version $VERSION not found"
13+
exit 1
14+
fi

src/examples/pnpm-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ usage:
1212
package-manager: "pnpm"
1313
package-manager-version: "9.7.1"
1414
start-command: "pnpm start"
15-
install-command: "pnpm install --frozen-lockfile"
15+
install-command: "pnpm install"

src/examples/pnpm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ usage:
1111
- cypress/run:
1212
package-manager: "pnpm"
1313
start-command: "pnpm start"
14-
install-command: "pnpm install --frozen-lockfile"
14+
install-command: "pnpm install"

0 commit comments

Comments
 (0)