Comments (5)
Hmm. This is unexpected.
What is the nr
command youโre running there? Iโm not familiar with it.
What happens if you remove that tag and commit and do:
npx commit-and-tag-version --dry-run --release-as 1.0.0
(note no double -
before the arguments)
Are there any tags in this repository already?
from commit-and-tag-version.
nr
is the run alias in https://github.com/antfu/ni so basically the same as npm run.
I tested nr release --dry-run --release-as 1.0.0
and it tagged 1.0.0 as expected so I guess my problem was the extra --
. I think I copy pasted those from the README.
Is there a reason for the extra --
or is it safe to omit them?
from commit-and-tag-version.
You need those with npm run
, so my guess is that nr
isnโt really an alias for npm run
from commit-and-tag-version.
You're right, nr isn't just npm run
but includes the --
already so it's npm run --
. Thus running the command in the screenshot with nr adds extra --
which breaks things. I didn't run npm with arguments before so I had no idea it needed --
at all (for example pnpm doesn't use this syntax)
I copied the --
part of the npm command by mistake, I should've run nr release --release-as 1.0.0
in my case. Makes sense. ๐
Thanks for the help!
from commit-and-tag-version.
You're welcome! Glad it got fixed!
from commit-and-tag-version.
Related Issues (20)
- Multiple postchangelog scripts? HOT 1
- Bug: Frontmatter is duplicated in certain scenarios HOT 7
- Cannot run tests using Node 20 HOT 11
- Escape characters like < and > HOT 3
- Does this package not support setting --header?
- Use without pushing directly to master/main? HOT 2
- Include all commits in CHANGELOG
- Why did `npx commit-and-tag-version` miss the most recent commit? HOT 2
- Argument `--releaseAs [1.1.0]` is ignored if `--skip.bump` is also used
- Reverted commits are included in the generated CHANGELOG.md
- Why commits got repeated when I format the CHANGELOG file manually? HOT 5
- Bump files, which are being ignored in Git, too HOT 1
- Compare releases agains previous release (skipping prerelease) HOT 3
- How can I generate a CHANGELOG.md based on a different commit convention? HOT 3
- Commits got repeated when I format the CHANGELOG file manually? (revamp #133)
- Support ESM format for config file HOT 3
- Make it more obvious that some/all config options can be set via separate config
- Show changelog only for changes in a subfolder HOT 2
- How to access the release type in life cycle scripts?
- Allow passing additional arguments to git-semver-tags HOT 7
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 commit-and-tag-version.