Skip to content

Commit

Permalink
chore: specify packageManager in package.json (#174)
Browse files Browse the repository at this point in the history
This makes corepack automatically pick the correct version of pnpm to
use.

The pnpm GitHub action also supports this field.
  • Loading branch information
remcohaszing committed May 5, 2024
1 parent 7ff01d0 commit 21883fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/auto-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"packageManager": "[email protected]+sha256.c557b24d2298d9b5e3be7086ebf55a28253b008324d545f72645a6de89844102",
"scripts": {
"build": "tsc -b",
"watch": "tsc -b -w",
Expand Down

0 comments on commit 21883fc

Please sign in to comment.