Skip to content

Commit c92a779

Browse files
committed
refactor: pnpm detects the best strategy by itself
even also being able to detect CI environments
1 parent 99baae1 commit c92a779

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

.github/workflows/audit-fix-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
cache: "pnpm"
3535

3636
- name: Install dependencies
37-
run: pnpm install --frozen-lockfile
37+
run: pnpm install
3838

3939
- name: Run pnpm audit --fix
4040
run: pnpm audit --fix

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cache: "pnpm"
3636

3737
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
38+
run: pnpm install
3939

4040
- name: Run tests
4141
run: pnpm test
@@ -70,7 +70,7 @@ jobs:
7070
cache: "pnpm"
7171

7272
- name: Install dependencies
73-
run: pnpm install --frozen-lockfile
73+
run: pnpm install
7474

7575
- name: Build package
7676
run: pnpm run build
@@ -113,7 +113,7 @@ jobs:
113113
cache: "pnpm"
114114

115115
- name: Install dependencies
116-
run: pnpm install --frozen-lockfile
116+
run: pnpm install
117117

118118
- name: Lint Markdown files
119119
run: pnpm run lint:markdownlint

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
cache: "pnpm"
7272

7373
- name: Install dependencies
74-
run: pnpm install --frozen-lockfile
74+
run: pnpm install
7575

7676
# Initializes the CodeQL tools for scanning.
7777
- name: Initialize CodeQL

.github/workflows/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
cache: "pnpm"
4747

4848
- name: Install dependencies
49-
run: pnpm install --frozen-lockfile
49+
run: pnpm install
5050

5151
- name: Lint code (xo), markdown (markdownlint), and package (publint)
5252
run: pnpm run lint
@@ -87,7 +87,7 @@ jobs:
8787
cache: "pnpm"
8888

8989
- name: Install dependencies
90-
run: pnpm install --frozen-lockfile
90+
run: pnpm install
9191

9292
- name: Run tests with coverage
9393
run: pnpm run --recursive test:vitest --coverage --coverage.reporter lcov --coverage.reporter json

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cache: "pnpm"
4040

4141
- name: Install dependencies
42-
run: pnpm install --frozen-lockfile
42+
run: pnpm install
4343

4444
- name: Run tests
4545
run: pnpm test

.github/workflows/performance-optimized.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cache: "pnpm"
3636

3737
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
38+
run: pnpm install
3939

4040
- name: Run performance benchmarks
4141
run: |

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cache: "pnpm"
3838

3939
- name: Install dependencies
40-
run: pnpm install --frozen-lockfile
40+
run: pnpm install
4141

4242
- name: Build package
4343
run: pnpm run build

.github/workflows/quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cache: "pnpm"
3333

3434
- name: Install dependencies
35-
run: pnpm install --frozen-lockfile
35+
run: pnpm install
3636

3737
- name: Run tests with coverage
3838
run: pnpm run --recursive test:vitest --coverage --coverage.reporter lcov --coverage.reporter json
@@ -81,7 +81,7 @@ jobs:
8181
cache: "pnpm"
8282

8383
- name: Install dependencies
84-
run: pnpm install --frozen-lockfile
84+
run: pnpm install
8585

8686
- name: Run security audit
8787
run: pnpm audit --audit-level=low

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
cache: "pnpm"
5252

5353
- name: Install dependencies
54-
run: pnpm install --frozen-lockfile
54+
run: pnpm install
5555

5656
- name: Check changeset status
5757
run: |

docs/refactoring/MIGRATION_TO_PNPM.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ All workflows in `.github/workflows/` were updated to:
2121

2222
- Use `pnpm/action-setup@v3`
2323
- Install pnpm version 9
24-
- Use `pnpm install --frozen-lockfile` instead of `npm ci`
24+
- Use `pnpm install` instead of `npm ci`
2525
- Use `pnpm run` and `pnpm exec` instead of `npm run` and `npx`
2626

2727
### Documentation Updates
@@ -45,7 +45,7 @@ All workflows in `.github/workflows/` were updated to:
4545
| npm command | pnpm equivalent |
4646
| ----------------------------------- | --------------------------------- |
4747
| `npm install` | `pnpm install` |
48-
| `npm ci` | `pnpm install --frozen-lockfile` |
48+
| `npm ci` | `pnpm install` |
4949
| `npm run build --workspaces` | `pnpm --recursive run build` |
5050
| `npm test --workspaces` | `pnpm --recursive run test` |
5151
| `npx command` | `pnpm exec command` |

0 commit comments

Comments
 (0)