Skip to content

Commit 354dbe8

Browse files
committed
🔨 Use pnpm instead of yarn
1 parent 3c66cad commit 354dbe8

File tree

4 files changed

+261
-212
lines changed

4 files changed

+261
-212
lines changed

.github/workflows/publish.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,22 @@ jobs:
1717
with:
1818
node-version: 16
1919
registry-url: "https://registry.npmjs.org"
20-
cache: yarn
20+
21+
- name: Cache pnpm modules
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.pnpm-store
25+
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
26+
restore-keys: |
27+
${{ runner.os }}-
28+
29+
- name: Install pnpm
30+
uses: pnpm/[email protected]
31+
with:
32+
version: 6.0.2
2133

2234
- name: Install dependencies
23-
run: yarn install
35+
run: pnpm i
2436

2537
- name: Compile
2638
run: tsc

.github/workflows/test.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,22 @@ jobs:
1414
uses: actions/[email protected]
1515
with:
1616
node-version: 16
17-
cache: yarn
17+
18+
- name: Cache pnpm modules
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.pnpm-store
22+
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
23+
restore-keys: |
24+
${{ runner.os }}-
25+
26+
- name: Install pnpm
27+
uses: pnpm/[email protected]
28+
with:
29+
version: 6.0.2
1830

1931
- name: Install dependencies
20-
run: yarn install
32+
run: pnpm i
2133

2234
- name: Test package
2335
run: tsc

pnpm-lock.yaml

Lines changed: 233 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)