Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Can't publish package: "Package must be in a Git repository before publishing", but it isn't true (I think) #934

Closed
Luka108 opened this issue Oct 11, 2021 · 3 comments

Comments

@Luka108
Copy link

Luka108 commented Oct 11, 2021

I have a simple problem: I created a simple package for Atom, but I can't publish it because when I launch apm publish minor I receive the error
Package must be in a Git repository before publishing: https://help.github.com/articles/create-a-repo
But in fact it is in a repo, and you can find it here, where you can also check the package.json, to see if it's everything ok.
I'm struggling with this for two days, I hope I'll find a solution here.

Thank you in advance.

@Luka108
Copy link
Author

Luka108 commented Oct 14, 2021

I have an update

I somehow cloned the repo to my pc, and tried running the apm publish minor from the newly created folder.
It asked me the Atom token, so fantastic!
Then another error occurred, but I think I'm further ahead than before:
image
As you can see, git asks me to tell him who I am, but I run the suggested instruction right before the last.
So, what to do?

@Luka108
Copy link
Author

Luka108 commented Oct 14, 2021

Now I discovered that my package has appeared here, and it's amazing!
I can't find it by searching in Atom, but maybe I've to wait for some minutes.
Anyway, I think that the content of the README file should be shown on Atom Package web page, so it's clear that there's something wrong.

@Luka108
Copy link
Author

Luka108 commented Oct 14, 2021

I solved the issue omitting the arg --global to say git who I am.

Thanks to all.

@Luka108 Luka108 closed this as completed Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant