File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
import path from 'path'
2
2
import { fileURLToPath } from 'url'
3
3
import fs from 'node:fs/promises'
4
- import { promisify } from 'util'
5
4
import * as github from '@actions/github'
6
5
import { execaCommand } from 'execa'
7
6
Original file line number Diff line number Diff line change 26
26
name : Install pnpm
27
27
with :
28
28
version : latest
29
- run_install : true
29
+ run_install : false
30
+
31
+ - name : Get pnpm store directory
32
+ id : pnpm-cache
33
+ shell : bash
34
+ run : |
35
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36
+
37
+ - uses : actions/cache@v3
38
+ name : Setup pnpm cache
39
+ with :
40
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pnpm-store-
44
+
45
+ - name : Install dependencies
46
+ run : pnpm install
30
47
31
48
- name : install Rust stable
32
49
uses : dtolnay/rust-toolchain@stable
You can’t perform that action at this time.
0 commit comments