diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index abb1116..21f80de 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -19,6 +19,12 @@ jobs: node-version: '18' cache: 'yarn' registry-url: 'https://registry.npmjs.org' + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cache + key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - name: Publish run: | yarn install --frozen-lockfile --ignore-scripts --prefer-offline diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e362bed..d5ec2bc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,6 +19,12 @@ jobs: with: node-version: '18' cache: 'yarn' + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cache + key: dependencies-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - name: Install run: yarn install --frozen-lockfile --ignore-scripts --prefer-offline - name: Test TypeScript