Comments (4)
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.
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.
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.
@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:
- run
ng build
to populate dist - run
semantic-release
to bump the version number indist
. - run a postpublish script to sync the bumped version back to the source.
- 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)
- npm whoami failing HOT 3
- `package.json` version not updated, despite correct plugin ordering HOT 1
- Set --no-workspaces with npm version HOT 2
- Command failed with exit code 1: npm version 0.22.2 --userconfig HOT 2
- error on publishing HOT 1
- Publishing failed since update from [email protected] to [email protected] with files mentioned in .gitignore HOT 6
- Update a package.json in a sub folder
- CVE-2023-42282 HOT 1
- Support for custom package.json properties to write changelist entries
- NPM Audit Signatures issue on 11.0.3 HOT 2
- Failed step "prepare" of plugin "@semantic-release/npm" due to reading malformed path HOT 13
- ERR_INVALID_AUTH triggered by semantic-release npm despite not having this field set in checkout directory HOT 11
- semantic-release seems publishing twice and causing error. HOT 1
- Security Issue with out of date [email protected] found with SNYK HOT 3
- Array format/style is being changed HOT 3
- improve auth token resolution
- align approach for concatenating `.npmrc` files to better align with default npm behavior
- account for deprecation of `_auth` in existing `.npmrc` files
- Cannot set properties of null (setting 'peer') HOT 4
- npm ERR! log.http is not a function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm.