Skip to content

Ability to move packages across repositories #8577

Answered by shidil
dentuzhik asked this question in Actions
Discussion options

You must be logged in to vote

This is possible now by setting the repository field in package.json

This is what worked for me

  1. Changed package.json repository field to point to new repo "repository": "git://github.com/org/new-repo.git"
  2. Published a new version of the package (edit package.json version and npm publish)
  3. Went to package settings https://github.com/orgs/{orgName}/packages/npm/{packageName}/settings
  4. Previous repo will be displayed, along with an unlink (delete icon) button. Unlink the package
  5. Published a new version (edit package.json version and npm publish)
  6. Package moved to new repo!

Maybe step 2 can be skipped

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jschlechtehomer
Comment options

Answer selected by dentuzhik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
6 participants