Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release from branch next published on GitHub with 'pre-release' flag #757

Open
Th3S4mur41 opened this issue Dec 11, 2023 · 1 comment
Open

Comments

@Th3S4mur41
Copy link

Triggering a new release with breaking changes from the branch next created a new v2.0.0 tag and along with it a new GitHub release that was correctly not marked as latest.
The release had however the pre-release flag set to true, which is shouldn't according to the docs.

Config file:

{
	"branches": ["main", "next", { "name": "beta", "prerelease": true }, { "name": "alpha", "prerelease": true }],
	"plugins": [
		[
			"@semantic-release/commit-analyzer",
			{
				"preset": "conventionalcommits",
				"releaseRules": [
					{
						"type": "build",
						"scope": "deps",
						"release": "patch"
					}
				]
			}
		],
		[
			"@semantic-release/release-notes-generator",
			{
				"preset": "conventionalcommits",
				"presetConfig": {
					"types": [
						{
							"type": "feat",
							"section": "Features"
						},
						{
							"type": "fix",
							"section": "Bug Fixes"
						},
						{
							"type": "build",
							"section": "Dependencies and Other Build Updates",
							"hidden": false
						}
					]
				}
			}
		],
		"@semantic-release/changelog",
		"@semantic-release/npm",
		[
			"@semantic-release/git",
			{
				"assets": ["CHANGELOG.md", "package.json", "package-lock.json"]
			}
		],
		"@semantic-release/github"
	]
}
> npx semantic-release

[10:30:11 AM] [semantic-release] › ℹ  Running semantic-release version 22.0.10
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[10:30:11 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[10:30:18 AM] [semantic-release] › ✔  Run automated release from branch next on repository https://github.com/eviden-parallel/actions.git
[10:30:18 AM] [semantic-release] › ✔  Allowed to push to the Git repository
[10:30:18 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
[10:30:18 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[10:30:18 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
[10:30:19 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
[10:30:19 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/git"
[10:30:19 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/git"
[10:30:19 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
[10:30:19 AM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[10:30:19 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
[10:30:19 AM] [semantic-release] › ℹ  Found git tag v1.13.3 associated with version 1.13.3 on branch next
[10:30:19 AM] [semantic-release] › ℹ  Found 36 commits since last release
[10:30:19 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: use NODE_AUTH_TOKEN for package access
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix:  use GITHUB_TOKEN by default for npm install
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: chore(deps-dev): bump prettier from 3.1.0 to 3.1.1 (#182)

Bumps [prettier](https://github.com/prettier/prettier) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: add missing permissions
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: fix: add package read permission
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is patch
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: docs: fix worfklow names
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The commit should not trigger a release
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: feat: replace dependabot through auto-merge
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is minor
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: feat: optimize workflow

BREAKING CHANGE: Workflows have new names and arguments
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is major
[10:30:19 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 36 commits complete: major release
[10:30:19 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[10:30:19 AM] [semantic-release] › ℹ  The next release version is 2.0.0
[10:30:19 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:30:19 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:30:19 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
[10:30:19 AM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /__w/actions/actions/CHANGELOG.md
[10:30:19 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
[10:30:19 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
[10:30:19 AM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 2.0.0 to package.json in /__w/actions/actions
v2.0.0
[10:30:19 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/npm"
[10:30:19 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
[10:30:20 AM] [semantic-release] [@semantic-release/git] › ℹ  Found 3 file(s) to commit
[10:30:21 AM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: v2.0.0
[10:30:21 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
[10:30:21 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:30:21 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[10:30:24 AM] [semantic-release] › ✔  Created tag v2.0.0
[10:30:24 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/npm"
[10:30:24 AM] [semantic-release] [@semantic-release/npm] › ℹ  Skip publishing to npm registry as package.json's private property is true
[10:30:24 AM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/npm"
[10:30:24 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/github"
[10:30:25 AM] [semantic-release] [@semantic-release/github] › ℹ  Published GitHub release: https://github.com/eviden-parallel/actions/releases/tag/v2.0.0
[10:30:25 AM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/github"
[10:30:25 AM] [semantic-release] › ℹ  Start step "success" of plugin "@semantic-release/github"
[10:30:44 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #182: https://github.com/eviden-parallel/actions/pull/182#issuecomment-1849767876
[10:30:47 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #181: https://github.com/eviden-parallel/actions/pull/181#issuecomment-1849767963
[10:30:50 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #177: https://github.com/eviden-parallel/actions/pull/177#issuecomment-1849768055
[10:30:53 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #179: https://github.com/eviden-parallel/actions/pull/179#issuecomment-1849768146
[10:30:56 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #176: https://github.com/eviden-parallel/actions/pull/176#issuecomment-1849768234
[10:30:59 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #178: https://github.com/eviden-parallel/actions/pull/178#issuecomment-1849768313
[10:31:02 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #180: https://github.com/eviden-parallel/actions/pull/180#issuecomment-1849768414
[10:31:05 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #170: https://github.com/eviden-parallel/actions/pull/170#issuecomment-1849768496
[10:31:08 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #172: https://github.com/eviden-parallel/actions/pull/172#issuecomment-1849768586
[10:31:11 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #173: https://github.com/eviden-parallel/actions/pull/173#issuecomment-1849768687
[10:31:12 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #182
[10:31:13 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #181
[10:31:14 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #177
[10:31:14 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #174: https://github.com/eviden-parallel/actions/pull/174#issuecomment-1849768779
[10:31:[15](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:16) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #179
[10:31:[16](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:17) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #[17](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:18)6
[10:31:17 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #175: https://github.com/eviden-parallel/actions/pull/175#issuecomment-[18](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:19)49768849
[10:31:17 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #178
[10:31:18 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #180
[10:31:[19](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:20) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #170
[10:31:[20](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:21) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #165: https://github.com/eviden-parallel/actions/pull/165#issuecomment-1849768924
[10:31:20 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #172
[10:31:[21](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:22) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #173
[10:31:[22](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:23) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #174
[10:31:[23](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:24) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #168: https://github.com/eviden-parallel/actions/pull/168#issuecomment-1849769012
[10:31:23 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #175
[10:31:[24](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:25) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #165
[10:31:[25](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:26) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #168
[10:31:[26](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:27) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #166: https://github.com/eviden-parallel/actions/pull/166#issuecomment-1849769086
[10:31:[27](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:28) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #166
[10:31:[29](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:30) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #169: https://github.com/eviden-parallel/actions/pull/169#issuecomment-1849769166
[10:31:[30](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:31) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #169
[10:[31](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:32):[32](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:33) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #171: https://github.com/eviden-parallel/actions/pull/171#issuecomment-1849769241
[10:31:[33](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:34) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #171
[10:31:[35](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:36) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #160: https://github.com/eviden-parallel/actions/pull/160#issuecomment-1849769319
[10:31:[36](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:37) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #160
[10:31:[38](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:39) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #161: https://github.com/eviden-parallel/actions/pull/161#issuecomment-1849769389
[10:31:[39](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:40) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #161
[10:31:[41](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:42) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #162: https://github.com/eviden-parallel/actions/pull/162#issuecomment-1849769473
[10:31:[42](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:43) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #162
[10:31:[44](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:45) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #163: https://github.com/eviden-parallel/actions/pull/163#issuecomment-1849769555
[10:31:[45](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:46) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #163
[10:31:[47](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:48) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #164: https://github.com/eviden-parallel/actions/pull/164#issuecomment-1849769644
[10:31:[48](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:49) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #164
[10:31:50 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #152: https://github.com/eviden-parallel/actions/pull/152#issuecomment-18[49](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:50)769731
[10:31:[51](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:52) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #1[52](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:53)
[10:31:[53](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:54) AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #156: https://github.com/eviden-parallel/actions/pull/156#issuecomment-1849769813
[10:31:[54](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:55) AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #156
[10:31:56 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #158: https://github.com/eviden-parallel/actions/pull/158#issuecomment-1849769890
[10:31:57 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #158
[10:31:59 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #157: https://github.com/eviden-parallel/actions/pull/157#issuecomment-1849769974
[10:32:00 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #157
[10:32:02 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #159: https://github.com/eviden-parallel/actions/pull/159#issuecomment-18497700[55](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:56)
[10:32:03 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #1[59](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:60)
[10:32:05 AM] [semantic-release] [@semantic-release/github] › ℹ  Added comment to issue #151: https://github.com/eviden-parallel/actions/pull/151#issuecomment-18497[70](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:71)[127](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:128)
[10:32:06 AM] [semantic-release] [@semantic-release/github] › ℹ  Added labels [ 'released on @next' ] to issue #[151](https://github.com/eviden-parallel/actions/actions/runs/7166119548/job/19509457833#step:9:152)
[10:32:06 AM] [semantic-release] › ✔  Completed step "success" of plugin "@semantic-release/github"
[10:32:06 AM] [semantic-release] › ✔  Published release 2.0.0 on next channel
@AirP0WeR
Copy link

AirP0WeR commented Feb 8, 2024

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants