Skip to content

Release creates no tag on first run #995

Open
@brckd

Description

@brckd

I use semantic release to automatically create releases on my repository. Lately however, the CI doesn't create a tag for the latest release. The tag is only added after re-running the CI. This leaves behind an older draft release without the tag and one valid release.

Releases:
Image

Semantic release config:

export default {
  branches: ["main"],
  plugins: [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/github",
  ],
};

GitHub actions permissions:

permissions:
  contents: write
  issues: read

Logs:

Run npx semantic-release
npm warn exec The following package was not found and will be installed: [email protected]
[2:01:45 PM] [semantic-release] › ℹ  Running semantic-release version 24.2.2
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[2:01:46 PM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[2:01:48 PM] [semantic-release] › ✔  Run automated release from branch main on repository git+https://github.com/brckd/pages.git
[2:01:48 PM] [semantic-release] › ✔  Allowed to push to the Git repository
[2:01:48 PM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
[2:01:48 PM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com/)
[2:01:48 PM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
[2:01:48 PM] [semantic-release] › ℹ  Found git tag v1.3.0 associated with version 1.3.0 on branch main
[2:01:48 PM] [semantic-release] › ℹ  Found 1 commits since last release
[2:01:48 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[2:01:48 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analyzing commit: feat: add new fonts and code block styling
[2:01:48 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  The release type for the commit is minor
[2:01:48 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ  Analysis of 1 commits complete: minor release
[2:01:48 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[2:01:48 PM] [semantic-release] › ℹ  The next release version is 1.4.0
[2:01:48 PM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[2:01:48 PM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[2:01:50 PM] [semantic-release] › ✔  Created tag v1.4.0
[2:01:50 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/github"
[2:01:51 PM] [semantic-release] [@semantic-release/github] › ℹ  Published GitHub release: https://github.com/brckd/pages/releases/tag/v1.4.0
[2:01:51 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/github"
[2:01:51 PM] [semantic-release] › ℹ  Start step "success" of plugin "@semantic-release/github"
[2:01:53 PM] [semantic-release] › ✔  Completed step "success" of plugin "@semantic-release/github"
[2:01:53 PM] [semantic-release] › ✔  Published release 1.4.0 on default channel``` 

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