atom/apm

`apm publish minor` cause an error of "you do not have access"

juggernautjp opened this issue · 1 comments

Prerequisites

Description

I want to publish my package of juggernautjp/atom-i18n-beta.
But I can not publish it, because apm publish minor cause an error of "you do not have access".

Steps to Reproduce

  1. Create new repository on GitHub.
  2. Clone it to my local repository.
  3. Add all package files, including JavaScript source code, package.json, etc.
  4. Execute git add -A, git commit and git branch -M main
  5. Execute git push -u origin main
  6. Execute apm publish minor

Expected behavior:

My package of juggernautjp/atom-i18n-beta is registered on atom.io/packages,
and we can install the atom-i18n-beta on Atom.

Actual behavior:

Executing apm publish minor cause the following error messages:

PS F:\atom-i18n-beta> apm publish minor
Registering atom-i18n-beta failed
Registering package in juggernautjp/atom-i18n-beta repository failed: That repo does not exist, isn't an atom package, or you do not have access

Reproduces how often:
always

Versions

Atom    : 1.57.0
Electron: 9.4.4
Chrome  : 83.0.4103.122
Node    : 12.14.1
OS      : Windows10
Npm     : 6.14.13
Python  : 3.9.5

Additional Information

I tried the following options:

  1. Register the token by atom login. (confirm the message of "Saving token to Keychain done")
  2. After delete authenticatoin key of git.https://github.com, and register my two kind of keys by git push.
    which are "1. Web browser" and "2. Personal access token". (confirm the message of "Everything up-to-date")

According to the article of Atom Discuss, Publishing for the first time: “Registering package failed”, I can fix this bug.

The following command fix this bug, so I close this issue:

git checkout -b master
git push -u origin master
apm publish minor