From 91e9145c5f9cfe07416285be6e9ea2a72d30dcbb Mon Sep 17 00:00:00 2001 From: Abhinav Sundaresan Date: Mon, 9 Nov 2026 23:16:50 +0000 Subject: [PATCH] ci: install dependencies in the publish job ubuntu-latest now runs ubuntu-26.04, which doesn't ship a global lerna (the 24.04 image had Lerna 10.0.1). The publish job never ran npm ci, so scripts/publish.js now fails with 'lerna: not found' in both the Wombat and the Exit Gate paths. Run npm ci before the build artifacts are copied in, so the repo's own lerna is used. Also keep the build artifact for 7 days instead of 1. The publish job waits for a human to approve the release environment, and an approval more than a day after the push failed at 'Rsync Artifacts' because the artifact had expired. --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a607f2c2e..e3b430d27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,8 @@ jobs: packages/@apphosting/*/dist/ packages/@apphosting/experimental/*/dist/ packages/@google-cloud/*/dist/ - retention-days: 1 + # The publish job reuses this artifact after a human approves the release environment. + retention-days: 7 if-no-files-found: ignore test: @@ -128,6 +129,10 @@ jobs: node-version: 20 check-latest: false registry-url: "https://registry.npmjs.org" + # scripts/publish.js runs lerna. ubuntu-26.04 runners no longer ship a global lerna, so install + # the repo's own copy, before the build artifacts are copied in. + - name: Install deps + run: npm ci - name: "Download Artifacts" uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 - name: Rsync Artifacts