Unverified Commit 2723f00c authored by Oscar Dominguez's avatar Oscar Dominguez Committed by GitHub
Browse files

ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)

parent 02ebd324
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,9 +14,10 @@ jobs:
    steps:
      - uses: actions/checkout@v1
      - name: setup node
        uses: actions/setup-node@v1
        uses: actions/setup-node@v2
        with:
          node-version: "12.x"
          cache: npm

      - name: npm install, generate readme
        run: |
+2 −12
Original line number Diff line number Diff line
@@ -16,20 +16,10 @@ jobs:
      - uses: actions/checkout@v2

      - name: Setup Node
        uses: actions/setup-node@v1
        uses: actions/setup-node@v2
        with:
          node-version: "12.x"

      - name: Cache node modules
        uses: actions/cache@v2
        env:
          cache-name: cache-node-modules
        with:
          path: ~/.npm
          key:
            ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-npm-cache-
          cache: npm

      - name: Install & Test
        run: |