Skip to content

Commit 5ab8a2a

Browse files
authored
Dgilman/fix yarn and caching (#1004)
* chore(ci): Fix yarn cache error * Remove install-stat.gz * release.yml improvements
1 parent 979c889 commit 5ab8a2a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,18 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121

22+
- name: Enable Corepack
23+
run: corepack enable
24+
2225
- name: Setup Node
2326
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2427
with:
2528
node-version: 20
2629
registry-url: 'https://registry.npmjs.org'
27-
28-
- name: Enable Corepack
29-
run: corepack enable
30-
31-
- name: Install Yarn
32-
run: corepack prepare yarn@stable --activate
30+
cache: yarn
3331

3432
- name: Install dependencies
35-
run: yarn install --immutable --immutable-cache
36-
37-
- name: Install npm
38-
run: npm install -g npm@latest
33+
run: yarn install --immutable
3934

4035
- name: Release
4136
env:

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
.idea/
22
dist/
33
node_modules/
4+
5+
# Yarn cache and install state (Yarn Berry)
6+
.yarn/cache
7+
.yarn/install-state.gz
8+
.yarn/build-state.yml
9+
.yarn/unplugged

.yarn/install-state.gz

-978 KB
Binary file not shown.

0 commit comments

Comments
 (0)