Commit 9d5ac84 1 parent 4f76abd commit 9d5ac84 Copy full SHA for 9d5ac84
File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Cache
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - pre-release-testing-branch
8
+ - changeset-release/main
9
+ - v-next
10
+ paths :
11
+ - " .github/workflows/cache.yml"
12
+ - " **/pnpm-lock.yaml"
13
+ pull_request :
14
+ paths :
15
+ - " .github/workflows/cache.yml"
16
+ - " **/pnpm-lock.yaml"
17
+ workflow_dispatch :
18
+
19
+ concurrency :
20
+ group : ${{github.workflow}}-${{github.ref}}
21
+ cancel-in-progress : true
22
+
23
+ defaults :
24
+ run :
25
+ shell : bash
26
+
27
+ jobs :
28
+ cache :
29
+ name : Cache
30
+ runs-on : ${{ matrix.runner }}
31
+ strategy :
32
+ fail-fast : false
33
+ matrix :
34
+ runner : ["ubuntu-latest", "macos-latest", "windows-latest"]
35
+ steps :
36
+ - uses : actions/checkout@v4
37
+ - id : env
38
+ uses : ./.github/actions/setup-env
39
+ with :
40
+ cache-save : true
41
+ - name : Install
42
+ if : steps.env.outputs.cache-hit != 'true'
43
+ run : |
44
+ for lockfile in $(find "$(pwd)" -name pnpm-lock.yaml); do
45
+ pushd "$(dirname "$lockfile")"
46
+ pnpm install --frozen-lockfile --prefer-offline
47
+ popd
48
+ done
You can’t perform that action at this time.
0 commit comments