From 1edda098150cf4876e9ebacc400dbf8e1122b035 Mon Sep 17 00:00:00 2001 From: MaksimZhukov Date: Wed, 30 Jun 2021 18:44:10 +0300 Subject: [PATCH] Add cache usage to the node.js starter-workflow --- ci/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/node.js.yml b/ci/node.js.yml index 2f609845ab..89b24fed53 100644 --- a/ci/node.js.yml +++ b/ci/node.js.yml @@ -1,4 +1,4 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI @@ -25,6 +25,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - run: npm ci - run: npm run build --if-present - run: npm test