File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : buildjet-4vcpu-ubuntu-2204
10
10
container :
11
11
image : node:22
12
- credentials :
13
- username : ${{ vars.DOCKER_HUB_USERNAME }}
14
- password : ${{ secrets.DOCKER_HUB_API_KEY }}
15
12
steps :
16
13
- name : Checkout
17
14
uses : actions/checkout@v4
18
15
- name : pnpm setup
19
16
uses : pnpm/action-setup@v4
20
- - name : Setup Node
21
- uses : actions/setup-node @v4
17
+ - name : pnpm Cache
18
+ uses : buildjet/cache @v4
22
19
with :
23
- node-version : 20
24
- cache : " pnpm"
20
+ path : |
21
+ ~/.pnpm-store
22
+ node_modules
23
+ */*/node_modules
24
+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-pnpm-
25
27
- name : Install packages
26
- run : pnpm install
28
+ if : steps.pnpm-cache.outputs.cache-hit != 'true'
29
+ run : pnpm install --frozen-lockfile
27
30
- name : Run Lint
28
31
run : pnpm lint
29
32
env :
You can’t perform that action at this time.
0 commit comments