Skip to content

Commit b92881f

Browse files
committed
fix workflow
1 parent 757e474 commit b92881f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/lint.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ jobs:
99
runs-on: buildjet-4vcpu-ubuntu-2204
1010
container:
1111
image: node:22
12-
credentials:
13-
username: ${{ vars.DOCKER_HUB_USERNAME }}
14-
password: ${{ secrets.DOCKER_HUB_API_KEY }}
1512
steps:
1613
- name: Checkout
1714
uses: actions/checkout@v4
1815
- name: pnpm setup
1916
uses: pnpm/action-setup@v4
20-
- name: Setup Node
21-
uses: actions/setup-node@v4
17+
- name: pnpm Cache
18+
uses: buildjet/cache@v4
2219
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-
2527
- name: Install packages
26-
run: pnpm install
28+
if: steps.pnpm-cache.outputs.cache-hit != 'true'
29+
run: pnpm install --frozen-lockfile
2730
- name: Run Lint
2831
run: pnpm lint
2932
env:

0 commit comments

Comments
 (0)