Skip to content

Commit 2f9ae69

Browse files
committed
try pnpm
1 parent 20117cd commit 2f9ae69

File tree

5 files changed

+3961
-3930
lines changed

5 files changed

+3961
-3930
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- master
1010

11-
jobs:
11+
jobs:
1212
unit:
1313
name: unit / ${{matrix.os}} / node v${{matrix.node_version}}
1414
runs-on: ${{matrix.os}}
@@ -24,20 +24,31 @@ jobs:
2424
uses: actions/setup-node@master
2525
with:
2626
node-version: ${{ matrix.node_version }}
27-
- name: Cache Yarn
28-
uses: actions/cache@v3
27+
- uses: pnpm/action-setup@v2
28+
name: Install pnpm
29+
id: pnpm-install
2930
with:
30-
path: '**/node_modules'
31-
key: ${{ runner.os }}-${{matrix.node_version}}-yarn-${{ hashFiles('yarn.lock') }}
31+
version: 8
32+
run_install: false
33+
- name: Get pnpm store directory
34+
id: pnpm-cache
35+
shell: bash
36+
run: |
37+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
38+
- uses: actions/cache@v3
39+
name: Setup pnpm cache
40+
with:
41+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
42+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3243
restore-keys: |
33-
${{ runner.os }}-${{matrix.node_version}}-yarn-
34-
- name: Install Dependencies using Yarn
35-
run: yarn
44+
${{ runner.os }}-pnpm-store-
45+
- name: Install dependencies
46+
run: pnpm install
3647
- name: Run Tests
37-
run: yarn test
48+
run: pnpm run test
3849
- name: Run TS Smoke Tests
39-
run: yarn test:ts
50+
run: pnpm run test:ts
4051
- name: Lint Prettier
41-
run: yarn lint:prettier
52+
run: pnpm run lint:prettier
4253
- name: Lint ESLint
43-
run: yarn lint
54+
run: pnpm run lint

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
release:
99
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
1010
with:
11+
packageManager: 'pnpm'
1112
npmTag: alpha
1213
buildScript: build
1314
nodeVersion: 18
@@ -17,5 +18,7 @@ jobs:
1718

1819
dependencies:
1920
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
21+
with:
22+
packageManager: 'pnpm'
2023
secrets:
2124
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
stable:
99
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
1010
with:
11+
packageManager: 'pnpm'
1112
releaseScript: release
1213
nodeVersion: 18
1314
secrets:

0 commit comments

Comments
 (0)