Skip to content

Commit 41b9502

Browse files
committed
chore(ci): use built-in caching
1 parent 8f3cfc6 commit 41b9502

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

.github/workflows/github-pages.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@ jobs:
1818
uses: actions/setup-node@v3
1919
with:
2020
node-version: '16.x'
21-
22-
- name: Cache dependencies
23-
uses: actions/cache@v3
24-
with:
25-
path: ~/.yarn
26-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-node-
21+
cache: 'yarn'
2922

3023
- run: yarn install --frozen-lockfile
3124
- run: yarn test

.github/workflows/publish-github-packages.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ jobs:
1616
node-version: '16.x'
1717
registry-url: 'https://npm.pkg.github.com'
1818
scope: '@Pyrax'
19+
cache: 'yarn'
1920

20-
- name: Cache dependencies
21-
uses: actions/cache@v3
22-
with:
23-
path: ~/.yarn
24-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
25-
restore-keys: |
26-
${{ runner.os }}-node-
2721
- run: yarn install --frozen-lockfile
2822
- name: Autoscope package.json
2923
uses: khaazz/action-autoscope@master

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ jobs:
1818
uses: actions/setup-node@v3
1919
with:
2020
node-version: '16.x'
21+
cache: 'yarn'
2122

22-
- name: Cache dependencies
23-
uses: actions/cache@v3
24-
with:
25-
path: ~/.yarn
26-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-node-
2923
- run: yarn install --frozen-lockfile
3024
- name: Check tests before release
3125
run: yarn test

0 commit comments

Comments
 (0)