From c69faa346e506cfa399679ef2a4265ad469ed997 Mon Sep 17 00:00:00 2001 From: Gedas Gardauskas Date: Wed, 18 Jan 2023 15:40:49 +0200 Subject: [PATCH] AS-81: Cache dependencies --- .github/workflows/test-and-build.yml | 3 ++- .github/workflows/test-build-and-publish.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 17bd641..b0c52b3 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: + cache: 'npm' node-version-file: '.nvmrc' registry-url: 'https://npm.pkg.github.com' scope: '@speechify' @@ -31,8 +32,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: + cache: 'npm' node-version-file: '.nvmrc' registry-url: 'https://npm.pkg.github.com' scope: '@speechify' - - run: npm ci - run: npm run build diff --git a/.github/workflows/test-build-and-publish.yml b/.github/workflows/test-build-and-publish.yml index 34b0701..8204325 100644 --- a/.github/workflows/test-build-and-publish.yml +++ b/.github/workflows/test-build-and-publish.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: + cache: 'npm' node-version-file: '.nvmrc' registry-url: 'https://npm.pkg.github.com' scope: '@speechify' @@ -29,6 +30,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: + cache: 'npm' node-version-file: '.nvmrc' registry-url: 'https://npm.pkg.github.com' scope: '@speechify'