From 83c22ec904e4a5ed2d93fc5a0d2dfd46e1e0b5d5 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 9 May 2025 12:15:42 +0000 Subject: [PATCH] ci: restore `.npmrc` before executing `postUpgradeTasks` (#61239) Renovate temporarily modifies the `.npmrc` file during its operations and reverts these changes afterward. However, during `postUpgradeTasks`, the non reverted `.npmrc` will lead to errors when running `yarn bazel sync --only=repo` See: https://github.com/renovatebot/renovate/discussions/14897 PR Close #61239 --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 0b7a2c122ba..25a368ed586 100644 --- a/renovate.json +++ b/renovate.json @@ -18,7 +18,7 @@ "labels": ["area: build & ci", "action: merge"], "postUpgradeTasks": { "commands": [ - "git restore .yarn/releases/yarn-1.22.22.cjs pnpm-lock.yaml", + "git restore .yarn/releases/yarn-1.22.22.cjs pnpm-lock.yaml .npmrc", "yarn install --frozen-lockfile --non-interactive", "yarn bazel sync --only=repo || true", "yarn ng-dev misc update-generated-files"