build.publish section in package.json is ignored
See original GitHub issue- Version: 15.2.0
- Version: 1.8.2
- Target: nsis (win x64)
build.publish
section from my package.json is ignored, it always use repository
if exists or fallback to ./.git/config
.
What can be wrong and how to debug?
// ...
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/FelikZ/<repo>.git"
},
// ...
"build": {
// ...
"npmRebuild": true,
"compression": "store",
"asar": true,
"win": {
"target": "nsis",
"publish": ["github"]
},
"nsis": {
"oneClick": true
},
"publish": [{
"provider": "github",
"owner": "felikz",
"repo": "<repo>",
"token": "<token>"
}],
I used this as an example repo.
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (13 by maintainers)
Top Results From Across the Web
Is publishing a package to npm necessary when a file that is ...
The project contains a test folder that is ignored by npm but is not ignored by GitHub. When a change occurs in a...
Read more >How to ignore files from your npm package | Zell Liew
First, npm will check your repository for a .gitignore file. If there is a .gitignore file, npm will ignore files according to what's...
Read more >Control What you Publish Inside your Npm Packages - Medium
npmignore , npm will look for a .gitignore file. Certain files are always included ( package.json , …), and other are always ignored...
Read more >npm-publish | npm Docs
By default npm will publish to the public registry. This can be overridden by specifying a different default registry or using a scope...
Read more >What Really Gets Packaged?. Including and excluding files in ...
If you decide to remove the files field from the package.json file and try running the command npm publish --dry-run to see what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In the upcoming 15.6.1 I added additional debug logging. Please try it and attach debug log again.
#1385