Skip to content

Commit 6c44c8c

Browse files
committed
yarn cache cleanup
1 parent e1e494b commit 6c44c8c

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/programs.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,15 @@ jobs:
5858
echo "Generating keypair..."
5959
solana-keygen new -o "$HOME/.config/solana/id.json" --no-passphrase --silent
6060
61-
- name: Cache Node modules
61+
- name: Yarn Cache
6262
uses: actions/cache@v2
63-
id: cache-node-modules
6463
with:
65-
path: |
66-
./.yarn
67-
./node_modules
68-
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
64+
path: ./.yarn/cache
65+
key: ${{ runner.os }}-${{ hashFiles('./.yarn/**/*.js') }}
6966
- name: Setup Node
7067
uses: actions/setup-node@v2
7168
with:
7269
node-version: "16"
73-
registry-url: "https://npm.pkg.github.com"
7470
- run: yarn install
7571

7672
- name: Build program

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,11 @@ jobs:
3737
with:
3838
always-auth: true
3939
node-version: 14.x
40-
- name: Cache Node modules
40+
- name: Yarn Cache
4141
uses: actions/cache@v2
42-
id: cache-node-modules
4342
with:
44-
path: |
45-
./.yarn
46-
./node_modules
47-
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
43+
path: ./.yarn/cache
44+
key: ${{ runner.os }}-${{ hashFiles('./.yarn/**/*.js') }}
4845
- name: Install Yarn dependencies
4946
run: yarn install
5047
- name: Parse IDLs

0 commit comments

Comments
 (0)