diff --git a/templates/basic/.github/workflows/main.yml b/templates/basic/.github/workflows/main.yml index d40f0f8f6..182554c6a 100644 --- a/templates/basic/.github/workflows/main.yml +++ b/templates/basic/.github/workflows/main.yml @@ -13,16 +13,8 @@ jobs: with: node-version: 12.x - - name: Use cached node_modules - uses: actions/cache@v2 - with: - path: node_modules - key: nodeModules-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - nodeModules- - - - name: Install dependencies - run: yarn install --frozen-lockfile + - name: Install deps and build (with cache) + uses: bahmutov/npm-install@v1 - name: Lint run: yarn lint diff --git a/templates/react-with-storybook/.github/workflows/main.yml b/templates/react-with-storybook/.github/workflows/main.yml index d40f0f8f6..182554c6a 100644 --- a/templates/react-with-storybook/.github/workflows/main.yml +++ b/templates/react-with-storybook/.github/workflows/main.yml @@ -13,16 +13,8 @@ jobs: with: node-version: 12.x - - name: Use cached node_modules - uses: actions/cache@v2 - with: - path: node_modules - key: nodeModules-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - nodeModules- - - - name: Install dependencies - run: yarn install --frozen-lockfile + - name: Install deps and build (with cache) + uses: bahmutov/npm-install@v1 - name: Lint run: yarn lint diff --git a/templates/react/.github/workflows/main.yml b/templates/react/.github/workflows/main.yml index d40f0f8f6..182554c6a 100644 --- a/templates/react/.github/workflows/main.yml +++ b/templates/react/.github/workflows/main.yml @@ -13,16 +13,8 @@ jobs: with: node-version: 12.x - - name: Use cached node_modules - uses: actions/cache@v2 - with: - path: node_modules - key: nodeModules-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - nodeModules- - - - name: Install dependencies - run: yarn install --frozen-lockfile + - name: Install deps and build (with cache) + uses: bahmutov/npm-install@v1 - name: Lint run: yarn lint