From fb00cafb2a153897749a63c1eb9fd6da6b389911 Mon Sep 17 00:00:00 2001 From: Dylan Audius Date: Thu, 24 Sep 2026 14:42:54 -0700 Subject: [PATCH] ci(embed): build workspace deps and fetch dotenv-linter before verify On a node_modules cache hit the dotenv-linter binary is missing, and eslint can't resolve @audius/* until their dists are built. Mirrors embed.yml and mobile.yml. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/web.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 5c37181dce8..58e0a661e6f 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -986,8 +986,18 @@ jobs: mkdir -p /tmp/android-sdk-dummy npm run postinstall + # The binary comes from the package's install script and isn't in the + # node_modules cache. - name: Link environment linter executable - run: npm run rebuild -w @audius/dotenv-linter + run: | + if [[ ! -f packages/dotenv-linter/bin/dotenv-linter ]]; then + (cd packages/dotenv-linter && npm run install) + fi + npm run rebuild -w @audius/dotenv-linter + + # eslint resolves @audius/* imports through their dist builds. + - name: Build workspace dependencies + run: npx turbo run build --filter='embed^...' - name: Verify embed working-directory: packages/embed