#2306·changesets

automatically install @changesets/changelog-github upon `changeset init` if GitHub integration is selected

Author: KTrain5169Created Sep 17, 2026Updated Sep 17, 2026

When I choose to use the GitHub integration mentioned in changeset init, I expect it to install @changesets/changelog-github for me, but it doesn't, so often in CI it just crashes with this error:

Error: Cannot find package '@changesets/changelog-github' imported from /home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/x.mjs
    at __node_internal_ (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/lib/errors.js:433:11)
    at new NodeError (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/lib/errors.js:377:5)
    at packageResolve (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/lib/resolve.js:1035:9)
    at moduleResolve (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/lib/resolve.js:1117:18)
    at defaultResolve (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/lib/resolve.js:1293:15)
    at resolve (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/[email protected]/node_modules/import-meta-resolve/index.js:32:12)
    at importResolveFromDir (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:220:9)
    at getNewChangelogEntry (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:341:19)
    at applyReleasePlan (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/apply-release-plan/dist/index.mjs:252:38)
    at version (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/version.mjs:68:35)
    at async CAC.<anonymous> (file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/index.mjs:60:2)
    at async file:///home/runner/work/vite-plugin-node-env/vite-plugin-node-env/node_modules/.pnpm/@[email protected]/node_modules/@changesets/cli/dist/index.mjs:117:2
 Exited with code 1

I think it's reasonable to automatically install this package or at least prompt the user before automatically installing it