diff --git a/.github/renovate.json b/.github/renovate.json index e0ebf87a1..ea5fed215 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -39,6 +39,14 @@ "custom.regex" ], "pinDigests": false + }, + { + "matchPackageNames": ["@vercel/ncc"], + "postUpgradeTasks": { + "commands": [ + "pnpm run build" + ] + } } ], "customManagers": [ diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 49a1c53da..d82cf76e0 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -61,7 +61,11 @@ jobs: RENOVATE_PLATFORM_COMMIT: true FORCE_COLOR: 3 # chalk.supportsColor LOG_LEVEL: debug - RENOVATE_PR_FOOTER: "This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate/tree/${{ env.RENOVATE_VERSION }}). - [View logs](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})" # override + + # customize + RENOVATE_PR_FOOTER: "This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate/tree/${{ env.RENOVATE_VERSION }}). - [View logs](${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }})" + RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^pnpm run build$"]' + RENOVATE_ONBOARDING_CONFIG_FILE_NAME: .renovaterc.json - run: tree -L 5 -h --du -F "${cache_dir}" diff --git a/index.js b/index.js new file mode 100644 index 000000000..ea8e751d3 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +console.log("hoge") diff --git a/package.json b/package.json index 7eb5bf3e9..24d14a5f4 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,15 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "ncc build index.js" }, "keywords": [], "author": "", "license": "MIT", "packageManager": "pnpm@9.1.3+sha512.7c2ea089e1a6af306409c4fc8c4f0897bdac32b772016196c469d9428f1fe2d5a21daf8ad6512762654ac645b5d9136bb210ec9a00afa8dbc4677843ba362ecd", "devDependencies": { - "@types/node": "20.14.8" + "@types/node": "20.14.8", + "@vercel/ncc": "^0.38.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e02e2418e..3c77431a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,12 +11,19 @@ importers: '@types/node': specifier: 20.14.8 version: 20.14.8 + '@vercel/ncc': + specifier: ^0.38.1 + version: 0.38.1 packages: '@types/node@20.14.8': resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==} + '@vercel/ncc@0.38.1': + resolution: {integrity: sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==} + hasBin: true + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -26,4 +33,6 @@ snapshots: dependencies: undici-types: 5.26.5 + '@vercel/ncc@0.38.1': {} + undici-types@5.26.5: {}