Skip to content

Remove --frozen-lockfile for pnpm deps installation in document #725

@SnO2WMaN

Description

@SnO2WMaN

Description:

In below documents pnpm install --frozen-lockfile, but pnpm passes the --frozen-lockfile option automatically when it detects that it is running on CI (i.e. on GitHub Actions).

**Caching pnpm (v6.10+) dependencies:**
```yaml
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# NOTE: pnpm caching support requires pnpm version >= 6.10.0
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 6.32.9
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
```

I thought it seems that it is better not to pass it explicitly in document, so as not to cause unnecessary confusion.

References

Are you willing to submit a PR?

Yes

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions