Skip to content

Commit 63ca6d3

Browse files
authored
use pnpm in ci
1 parent cfabd1c commit 63ca6d3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/nodejs.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@ jobs:
1515
uses: actions/setup-node@v1
1616
with:
1717
node-version: 14.x
18+
- name: setup pnpm
19+
run: |
20+
npm i -g pnpm
21+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
22+
- uses: actions/cache@v3
23+
name: Setup pnpm cache
24+
with:
25+
path: ${{ env.STORE_PATH }}
26+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+
restore-keys: |
28+
${{ runner.os }}-pnpm-store-
1829
- name: npm install, build
1930
run: |
20-
npm install
31+
pnpm install
2132
./node_modules/.bin/tsc
2233
env:
2334
CI: true

0 commit comments

Comments
 (0)