Deleted files are not committed to the remote repo
See original GitHub issueI have a library build baked by rollup with multiple entry points. Rollup finds common dependencies and hashes them, so that after each release I end up with dirty files, being deleted but not commited:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: dist/confiig-93410e72.js
deleted: dist/definition-3fd983cb.js
New files are dist/config-8a65f714.js
and dist/definition-4e23ca7b.js
.
Edit:
.releaserc
:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
["@semantic-release/npm", {
"npmPublish": true,
}],
["@semantic-release/git", {
"assets": ["dist/**/*.{js,css}", "CHANGELOG.md", "package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
],
"branch": "master",
"dryRun": false,
"ci": false,
}
`package.json`: (only related)
```json
{
"devdependencies": {
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/git": "^7.0.16",
"semantic-release": "^15.13.24"
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (11 by maintainers)
Top Results From Across the Web
Git, commit and push changes with deleted file not working
This commands are very base. But I've notice that deleted file are not deleted from my remote repo. In fact if I delete...
Read more >How can I restore a deleted file in Git? - Tower Git Client
Short of deleting the entire repository directory (and not having a remote), few operations will result in a state where you're unable to...
Read more >5 Ways on How to Restore Deleted Files in Git
Case 1: I deleted a file but didn't commit. Missing your data on Git after perpetrating the task on Git is hugely rarefied....
Read more >How to Recover Deleted Files from a Local Repository in Git
To recover this file, you need to do perform a reset. This reset will return you to a state before your commit. You...
Read more >Recovering Deleted Files in GitHub - Rewind Backups
If you have not staged the deletion yet, simply run `git restore <filename>` and the file will be restored from the index. A...
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 Free
Top 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
Have you tried the workaround I mentioned there ?
🎉 This issue has been resolved in version 7.1.0-beta.8 🎉
The release is available on:
Your semantic-release bot 📦🚀