Skip to content

Commit

Permalink
fix: pnpm/action-setupをcorepackで置き換え (#72)
Browse files Browse the repository at this point in the history
* fix: corepackとsetup-nodeを使用する

* fix: corepackの設定を追加
  • Loading branch information
tufusa authored Jul 5, 2024
1 parent 613b038 commit 5a71287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- run: corepack enable
- name: Setup Nodejs v20
uses: actions/setup-node@v4

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

- name: Cache
uses: actions/cache@v4
with:
path: ~/.cache/install/cache
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
node-version: 20
cache: "pnpm"

- name: Install packages
run: pnpm i --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"version": "0.0.1",
"workspaces": [
"packages/*"
]
],
"packageManager": "pnpm@9.3.0"
}

0 comments on commit 5a71287

Please sign in to comment.