Skip to content

Commit 1c44cfa

Browse files
committed
yarn
1 parent 3af0e60 commit 1c44cfa

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/deploy-site.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ jobs:
4747
with:
4848
static_site_generator: next
4949

50-
- name: Install dependencies
51-
run: |
52-
cd site && yarn install
53-
5450
- name: Download coverage artifacts
5551
uses: dawidd6/action-download-artifact@v3 # cspell:ignore dawidd6
5652
with:

.github/workflows/test.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,24 @@ jobs:
2020
ruby-version: ".ruby-version"
2121
bundler-cache: true
2222

23+
- name: Setup Node.js (root)
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: "yarn"
28+
cache-dependency-path: "yarn.lock"
29+
30+
- name: Setup Node.js (site)
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: "yarn"
35+
cache-dependency-path: "site/yarn.lock"
36+
2337
- name: Install dependencies
2438
run: |
2539
# Make sure bundler is using the correct Ruby version
2640
ruby -v
27-
# yarn dependencies for site
28-
yarn install
29-
cd site && yarn install && cd ..
3041
3142
- name: Generate CSpell dictionaries from package lockfiles
3243
run: |
@@ -165,17 +176,13 @@ jobs:
165176
ruby-version: ".ruby-version"
166177
bundler-cache: true
167178

168-
- name: Setup Node.js
179+
- name: Setup Node.js (site)
169180
uses: actions/setup-node@v4
170181
with:
171182
node-version: 20
172183
cache: "yarn"
173184
cache-dependency-path: "site/yarn.lock"
174185

175-
- name: Install dependencies
176-
run: |
177-
cd site && yarn install
178-
179186
- name: Export TypeScript types
180187
run: |
181188
ruby scripts/export_typescript_types.rb

0 commit comments

Comments
 (0)