Skip to content

Issues when adding release-plan to fresh project #89

@beerinho

Description

@beerinho

I tried to add release-plan to an almost brand new svelte add-on app and after a straight-forward setup the initial PR gave this error:

release prepare

Edits the package.json and changelog files to prepare for release.

Options:
--version Show version number [boolean]
--help Show help [boolean]
--fromStdin Read the summary of changes from stdin instead of building
them from scratch. [boolean]
--singlePackage Allows you to run this command in a non monorepo and define
the package name [string]

Error: Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release
Error: Command failed with exit code 128: git describe --abbrev=0 --tags
fatal: No names found, cannot describe anything.
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)
at module.exports.sync (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:194:17)
at Object.lastTag (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/git.js:31:18)
at Changelog. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:32:56)
at Generator.next ()
at /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:8:71
at new Promise ()
at __awaiter (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:4:12)
at Changelog.createMarkdown (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:31:16)
at Object. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/cli.js:77:64)
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@4.1.0/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@4.1.0/node_modules/execa/index.js:114:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async gatherChanges (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/gather-changes.js:8:20)
at async newChangelogContent (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/cli.js:78:19)
at async Object.handler (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/cli.js:14:36) {
shortMessage: 'Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
command: 'node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'Error: Command failed with exit code 128: git describe --abbrev=0 --tags\n' +
'fatal: No names found, cannot describe anything.\n' +
' at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)\n' +
' at module.exports.sync (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:194:17)\n' +
' at Object.lastTag (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/git.js:31:18)\n' +
' at Changelog. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:32:56)\n' +
' at Generator.next ()\n' +
' at /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:8:71\n' +
' at new Promise ()\n' +
' at __awaiter (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:4:12)\n' +
' at Changelog.createMarkdown (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/changelog.js:31:16)\n' +
' at Object. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/lib/cli.js:77:64)',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

We deduced it might be because there wasn't a previous github tag to compare against, so we added one but after adding a tag for the repo and rerunning the action manually we got this error instead:

release prepare

Edits the package.json and changelog files to prepare for release.

Options:
--version Show version number [boolean]
--help Show help [boolean]
--fromStdin Read the summary of changes from stdin instead of building
them from scratch. [boolean]
--singlePackage Allows you to run this command in a non monorepo and define
the package name [string]

Error: Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release
Fetch error: Forbidden.
{"message":"Resource not accessible by integration","documentation_url":"[https://docs.github.com/rest/issues/issues#get-an-issue"}](https://docs.github.com/rest/issues/issues#get-an-issue%22%7D)
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@4.1.0/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/execa@4.1.0/node_modules/execa/index.js:114:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async gatherChanges (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/gather-changes.js:8:20)
at async newChangelogContent (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/cli.js:78:19)
at async Object.handler (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/release-plan@0.8.0/node_modules/release-plan/dist/cli.js:14:36) {
shortMessage: 'Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
command: 'node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@ef4+lerna-changelog@2.2.1/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'Fetch error: Forbidden.\n' +
'{"message":"Resource not accessible by integration","documentation_url":"[https://docs.github.com/rest/issues/issues#get-an-issue"}](https://docs.github.com/rest/issues/issues#get-an-issue%22%7D)',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

It turns out the reason was that the repo we were setting it up on was private (and possibly has some Org settings we can't control). So I think it's worth adding to the readme that this can happen.

After making the repo public it worked like a charm! 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions