Skip to content

Commit 4b72d13

Browse files
committed
Fix ci
1 parent 4151985 commit 4b72d13

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ jobs:
159159
with:
160160
node-version: 20
161161
cache: 'yarn'
162-
cache-dependency-path: demo/yarn.lock
162+
cache-dependency-path: |
163+
yarn.lock
164+
demo/yarn.lock
163165
164166
- name: Restore the deps and _build cache
165167
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
@@ -175,6 +177,13 @@ jobs:
175177
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-build-deps-demo-mixlockhash-${{ env.MIX_LOCK_HASH }}
176178
restore-keys: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-build-deps-demo-
177179

180+
- name: Install node dependencies
181+
run: yarn install --pure-lockfile
182+
183+
- name: Install demo node dependencies
184+
working-directory: demo
185+
run: yarn install --pure-lockfile
186+
178187
- name: Build JavaScript
179188
run: yarn run build
180189

@@ -192,10 +201,6 @@ jobs:
192201
working-directory: demo
193202
run: mix compile --warnings-as-errors --force
194203

195-
- name: Install node dependencies
196-
working-directory: demo
197-
run: yarn install --pure-lockfile
198-
199204
- name: lint:mix
200205
working-directory: demo
201206
run: yarn lint:mix

0 commit comments

Comments
 (0)