You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When the default branch of a repository is called main (this is currently the default behavior of GitHub), you cannot publish the apm package.
This is the kind of error that will be thrown:
❯ apm publish patch
Registering atom-ide-console failed
Registering package in atom-ide-community/atom-ide-console repository failed: That repo does not exist, isn't an atom package, or you do not have access
Manually tagging and using `apm publish --tag "v0.1.0" does not help either.
Current workaround
The only solution I have found is to make a branch from the main branch and call it "master". Make it the default branch in the GitHub settings. Then, publish the package.
git branch -m main master
git push -u origin master
# go to Github/settings/branches and change the default branch to master
apm publish patch
Steps to Reproduce
Create a new GitHub repository and make the default branch name "main"
makdir test-package-main
cd test-package-main
git init
gh create repo
git checkout -b main
Prerequisites
Prerequisites
Description
When the default branch of a repository is called main (this is currently the default behavior of GitHub), you cannot publish the apm package.
This is the kind of error that will be thrown:
Manually tagging and using `apm publish --tag "v0.1.0" does not help either.
Current workaround
The only solution I have found is to make a branch from the main branch and call it "master". Make it the default branch in the GitHub settings. Then, publish the package.
Steps to Reproduce
Here is the ready repository to test:
https://github.com/aminya/test-package-main
Expected behavior:
Publish
Actual behavior:
See the above description.
Reproduces how often:
Always
Versions
The text was updated successfully, but these errors were encountered: