Giter VIP home page Giter VIP logo

Comments (9)

cycjimmy avatar cycjimmy commented on June 14, 2024

In addition to adding extra plugins to the extra_plugins parameter, you also need to set related plugins in the semantic-release configuration file. And pay attention to the order of the plugins.
See https://github.com/cycjimmy/semantic-release-action#step1-set-any-semantic-release-configuration-in-your-repository.

Here is an example of @semantic-release/changelog and @semantic-release/git:

module.exports = {
  "dryRun": false,
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "@semantic-release/changelog",
      {
        "changelogFile": "CHANGELOG.md"
      }
    ],
    "@semantic-release/npm",
    "@semantic-release/github",
    [
      "@semantic-release/git",
      {
        "assets": [
          "CHANGELOG.md",
          "package.json",
          "package-lock.json"
        ],
        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
      }
    ]
  ]
};

from semantic-release-action.

hssngl avatar hssngl commented on June 14, 2024

I have created a repo to reproduce, workflows run successfully but no CHANGELOG.md.

from semantic-release-action.

cycjimmy avatar cycjimmy commented on June 14, 2024

I found that you did not set the assets for the @semantic-release/git plugin.

See https://github.com/semantic-release/changelog#usage.

from semantic-release-action.

hssngl avatar hssngl commented on June 14, 2024

Yes, but I have done that in the previous commits with the hope to make it work. I did the change again. still no result. also, I have looked at other repos with a few exceptions others couldn't generate the changelog as well. basically they have the config in their repos for changelog but no changelog.md what so ever.

from semantic-release-action.

cycjimmy avatar cycjimmy commented on June 14, 2024

I found that you specified an old version of the @semantic-release/changelog plugin. If you want to use @semantic-release/changelog@3, you need to specify the corresponding version of semantic-release.

Here is your error message.

[error]npm WARN @semantic-release/[email protected] requires a peer of semantic-release@>=15.8.0 <16.0.0 but none is installed. You must install peer dependencies yourself.

from semantic-release-action.

hssngl avatar hssngl commented on June 14, 2024

I have made the changes you specified, still, I don't see any CHANGELOG.md nor I get any warning or error in the action. I invited you to the project in case you want to directly edit or check something.

from semantic-release-action.

cycjimmy avatar cycjimmy commented on June 14, 2024

I have made the changes you specified, still, I don't see any CHANGELOG.md nor I get any warning or error in the action. I invited you to the project in case you want to directly edit or check something.

Use keywords such as feat, fix in the commit messages to trigger a new release. In your recent commits, no keywords were found, and semantic would do nothing.

from semantic-release-action.

hssngl avatar hssngl commented on June 14, 2024

I did a few times, no luck, can you please confirm?

from semantic-release-action.

cycjimmy avatar cycjimmy commented on June 14, 2024

I did a few times, no luck, can you please confirm?

You put the configurations in two different places. And The configuration in release.config.js is covered by package.json. I fixed the problem in hssngl/semantic-release-action-bug@685d01d.

from semantic-release-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.