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
This commit is contained in:
Alan Agius 2025-05-09 12:15:42 +00:00 committed by Jessica Janiuk
parent c8dfe6da34
commit 83c22ec904

View file

@ -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"