diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e72d5d..dfbc97a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,23 +45,15 @@ jobs: node-version: 16 cache: yarn - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 id: yarn-cache with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: node_modules key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + restore-keys: ${{ runner.os }}-yarn- - name: Install dependencies - run: | - yarn install --frozen-lockfile --prefer-offline - cd docs - yarn install --frozen-lockfile --prefer-offline + run: yarn install --frozen-lockfile --prefer-offline - name: Build Dist run: yarn build @@ -70,4 +62,7 @@ jobs: run: npx bundlewatch - name: Build Docs - run: yarn build:docs + run: | + cd docs + yarn install --frozen-lockfile --prefer-offline + yarn build