-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
Hi,
I'm using semantic-release-monorepo with semantic-release/gitlab and npm workspaces.
When doing so, I get an error saying that I need to give credentials for semantic-release/github which tries to load even though I don't use the plugin.
Here is my .releaserc.json :
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo VERSION=${nextRelease.version} > build.env"
}
]
],
"extends": "semantic-release-monorepo"
}
Here goes the error :
$ npm exec -w [myworkspace] -- semantic-release --dry-run
[11:07:01 AM] [semantic-release] › ℹ Running semantic-release version 23.1.1
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "success" from "@semantic-release/github"
[11:07:01 AM] [semantic-release] › ✔ Loaded plugin "fail" from "@semantic-release/github"
[11:07:04 AM] [semantic-release] › ⚠ Run automated release from branch main on repository xxx in dry-run mode
[11:07:05 AM] [semantic-release] › ✔ Allowed to push to the Git repository
[11:07:05 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
[11:07:05 AM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
[11:07:05 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
[11:07:05 AM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication
[11:07:05 AM] [semantic-release] › ✘ Failed step "verifyConditions" of plugin "@semantic-release/github"
[11:07:05 AM] [semantic-release] › ⚠ Skip step "fail" of plugin "@semantic-release/github" in dry-run mode
[11:07:05 AM] [semantic-release] › ✘ ENOGHTOKEN No GitHub token specified.
A GitHub personal token must be created and set in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment.
Please make sure to create a GitHub personal token and to set it in the GH_TOKEN or GITHUB_TOKEN environment variable on your CI environment. The token must allow to push to the repository xxx
Am I doing something wrong here?
Are npm workspaces supported?
KernelPanic92, nyan-left, mstroiu and junaidrsd
Metadata
Metadata
Assignees
Labels
No labels