apm publish patch
でpublishしようとしたら
Registering package in atom/mdnote repository failed: That repo does not exist, isn't an atom package, or you do not have access
と怒られた。
まず、package.jsonのrepositoryを存在するものに修正
Registering package in shwld/mdnote-for-atom repository failed: That repo does not exist, isn't an atom package, or you do not have access
また怒られた。
githubのOAuthキーが消えていた?(消していた?)っぽくて
https://atom.io/ から一度ログアウトして、githubとのOAuthを再接続してみたら成功
次は
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/shwld/mdnote-for-atom/'
とおこられた。
MFAを有効にしている場合は、https://github.com/settings/tokens で新しいトークンを生成して、passwordのかわりにそれを使えばいいということなので、試してみたら成功
終わり