From 256bd05581a00f1a3f773557f99c45b9b59d1dbc Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Thu, 27 Jun 2024 08:19:52 +0900 Subject: [PATCH] ci: renovate corepack --- .github/renovate.json | 9 --------- config.yaml | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 0e88b00bf..e0ebf87a1 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -39,15 +39,6 @@ "custom.regex" ], "pinDigests": false - }, - { - "matchPackageNames": ["@vercel/ncc"], - "postUpgradeTasks": { - "commands": [ - "pnpm install --frozen-lockfile --ignore-scripts", - "pnpm run build" - ] - } } ], "customManagers": [ diff --git a/config.yaml b/config.yaml index 04ee65fe9..76fa7da17 100644 --- a/config.yaml +++ b/config.yaml @@ -1,6 +1,14 @@ # yaml-language-server: $schema=https://docs.renovatebot.com/renovate-schema.json allowedPostUpgradeCommands: + - "^corepack use" - "^pnpm install --frozen-lockfile --ignore-scripts$" - "^pnpm run build$" onboardingConfigFileName: .renovaterc.json + +# HACK +packageRules: + - matchDepTypes: [packageManager] + postUpgradeTasks: + commands: + - "corepack use '{{{depName}}}@{{{newVersion}}}'"