From eab6df3af7c556ad5f66e39dc6e1738aed4d869f Mon Sep 17 00:00:00 2001 From: Suprun Date: Sun, 12 Jan 2025 17:09:36 +0300 Subject: [PATCH] chore: add cache --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 825db5f..76862ab 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,4 +1,4 @@ -name: Deploy static content to Pages +name: Deploy Github Pages on: push: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c72e43..edc76a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 + cache: 'npm' + cache-dependency-path: 'package-lock.json' - name: NPM Install run: npm install - name: NPM Build @@ -27,6 +29,10 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 + cache: 'npm' + cache-dependency-path: 'package-lock.json' + - name: NPM Install + run: npm install - name: Linter run: npm run lint @@ -38,5 +44,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 + cache: 'npm' + cache-dependency-path: 'package-lock.json' + - name: NPM Install + run: npm install - name: Linter run: npm run format-check