-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub Packages: Migrate npm Packages Between GitHub Instances | josh-ops #38
Comments
Hey Josh, the migration of npm packages from one github org to another one is just the scenario that I am currently fighting in my project. I came across your very nice project here (thanks for sharing it!) and instantly tried it out. The initial setup (GH cli, logins, etc) worked fine, but now I am facing one issue and thought that maybe you could have an idea what is going wrong? So after executing the .sh script with the four arguments I get the following:
|
Hmm interesting @dmtrshpv. Is it possible that there's a custom command or something that is running when we do the It's possible this package has a |
Hey @joshjohanning , As I wanted to exclude that it is because of the Mac I am working on, I just tried on a WSL env (there I have older npm and node versions installed) and I ended up with the same situation. More or less to get there I had to install additionally the "ts-node" npm package, therefore I just guess I am lacking some other package(s) that I can't figure out unfortunately. BUT, after removing the "| sort -V" part from line 60, the script started with a different order and was running up until it met a package with this issue. So now I have to find out how to make it skip such packages and not crash. BR |
One more update -> after a bit of echo debugging I found that it really fails at the "npm publish" command so at line 83 after the "npm publish.." I added
so that the script skips the failing packages and prints their name and version to a file. After that I will deal with these packages manually. |
Ahhh- that's fascinating. I just checked and I don't have
Love your suggestion to add that line here to capture the failed packages and continue to attempt the rest. I pushed that upstream. Thank you! |
Happy to be able to contribute a bit! Thanks again for sharing your script! |
GitHub Packages: Migrate npm Packages Between GitHub Instances | josh-ops
Migrating npm packages stored in GitHub Packages from one instance to another
https://josh-ops.com/posts/github-packages-migrate-npm-packages/
The text was updated successfully, but these errors were encountered: