Giter Site home page Giter Site logo

Comments (4)

pvdlg avatar pvdlg commented on July 19, 2024 2

I think this is because the package.json is updated in the prepare step and in your configuration the pkgRoot applies only to the publish step.
You should configure pkgRoot directly under release so it would apply to each step:

{
"release": {
    "noCi": true,
    "tagFormat": "${version}",
    "pkgRoot": "dist"
  }
}

from npm.

pvdlg avatar pvdlg commented on July 19, 2024 1

The way plugin option works is explained here: https://semantic-release.gitbooks.io/semantic-release/content/docs/usage/plugins.html#configuration

Not sure if it's really clear, but I don't know how to improve. Feel free to propose improvements.

from npm.

pterblgh avatar pterblgh commented on July 19, 2024

Thank you @pvdlg, this tip solved my issue.

This may be documented somewhere in the docs and I was the one who could not find it, but for a beginner (I've got familiar with semantic-release just today) like me it was totally unclear that steps have "side effects" in configuration setup.

Thank you again!

from npm.

EvanCarroll avatar EvanCarroll commented on July 19, 2024

@pvdlg well, one question I have is that in order to build into dist/ you have to run ng build. I assume this is done before semantic release is run. If you do this, how do you bump the version that was produced in dist and the version that is in the source? That's what I was trying to do:

  1. run ng build to populate dist
  2. run semantic-release to bump the version number in dist.
  3. run a postpublish script to sync the bumped version back to the source.
  4. run semantic-release/git to push that back to the repo.

Or is there another method of doing this....

From what I can see, even if I could have a different pkgroot for bumping the version number and publishing the package, it wouldn't work: what I really need is for the version number to be set in dist and the source, before publication.

from npm.

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.