Skip to content

Commit 6a10811

Browse files
committed
chore: Migrate package manager from pnpm to yarn
technote-space/release-github-actions dosen't support pnpm
1 parent 9403d68 commit 6a10811

File tree

5 files changed

+1799
-2229
lines changed

5 files changed

+1799
-2229
lines changed

.github/actions/setup/action.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
name: Setup Action
22
description: |
3-
Setup Node.js and pnpm.
3+
Setup Node.js and yarn.
44
55
runs:
66
using: composite
77
steps:
8-
- name: Setup pnpm
9-
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
108
- name: Setup Node.js
119
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
1210
with:
1311
node-version-file: ./.node-version
14-
cache: pnpm
15-
- name: Get pnpm store directory
12+
cache: yarn
13+
- name: Get yarn cache directory path
14+
id: yarn-cache-dir-path
15+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
1616
shell: bash
17-
run: |
18-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
1917
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
20-
name: Setup pnpm cache
18+
name: Setup yarn cache
2119
with:
22-
path: ${{ env.STORE_PATH }}
23-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
20+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2422
restore-keys: |
25-
${{ runner.os }}-pnpm-store-
23+
${{ runner.os }}-yarn-
2624
- name: Install Dependencies
27-
run: pnpm install --frozen-lockfile
25+
run: yarn install --frozen-lockfile
2826
shell: bash

.github/workflows/workflow.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
- name: Setup
1111
uses: ./.github/actions/setup
1212
- name: Lint
13-
run: pnpm lint
13+
run: yarn lint
1414
- name: TypeCheck
15-
run: pnpm typecheck
15+
run: yarn typecheck
1616

1717
unit-test:
1818
name: Unit Tests
@@ -24,9 +24,9 @@ jobs:
2424
- name: Setup
2525
uses: ./.github/actions/setup
2626
- name: Test
27-
run: pnpm test
27+
run: yarn test
2828
- name: Build
29-
run: pnpm build
29+
run: yarn build
3030

3131
build:
3232
name: Build
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup
3939
uses: ./.github/actions/setup
4040
- name: Build
41-
run: pnpm build
41+
run: yarn build
4242
- name: Upload Artifact
4343
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
4444
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"typescript": "^5.4.5",
3131
"vitest": "^1.5.0"
3232
},
33-
"packageManager": "[email protected]+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
33+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
3434
}

0 commit comments

Comments
 (0)