šŸ‘‹ We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.

Publicamos atualizaƧƵes frequentes em nossa documentaĆ§Ć£o, e a traduĆ§Ć£o desta pĆ”gina ainda pode estar em andamento. Para obter as informaƧƵes mais recentes, acesse a documentaĆ§Ć£o em inglĆŖs. Se houver problemas com a traduĆ§Ć£o desta pĆ”gina, entre em contato conosco.

Publicar um pacote

You can publish a package to GitHub Package Registry to make the package available for others to download and re-use.

GitHub Package Registry estĆ” disponĆ­vel com GitHub Free, GitHub Pro, GitHub Free para organizaƧƵes, GitHub Team, GitHub Enterprise Cloud e GitHub One. O GitHub Package Registry nĆ£o estĆ” disponĆ­vel para repositĆ³rios privados de contas que utilizam planos antigos por-repositĆ³rio. Para obter mais informaƧƵes, consulte os "produtos do GitHub".

Neste artigo

Anyone with write permissions for a repository can publish a package to that repository.

About published packages

You can help people understand and use your package by providing a description and other details like installation and usage instructions on the package page. GitHub provides metadata for each version, such as the publication date, download activity, and recent versions. For an example package page, see @Codertocat/hello-world-npm.

You can publish packages in a public repository (public packages) to share with all of GitHub, or in a private repository (private packages) to share with collaborators or an organization. A repository can contain more than one package. To prevent confusion, make sure the README and description clearly provide information about each package.

To prevent confusion and build problems, GitHub permanently reserves a package's name and version number. Even if an entire package is deleted, you cannot reuse the deleted package name in any repository owned by the same account.

To revise or replace a package version, we recommend you publish a new version of your package.

Publicar um pacote

You can publish a package to GitHub Package Registry using any supported package client by following the same general guidelines.

  1. Create or use an existing access token with the appropriate scopes for the task you want to accomplish. For more information, see "About GitHub Package Registry."
  2. Authenticate to GitHub Package Registry using your access token and the instructions for your package client.
  3. Publish the package using the instructions for your package client.

For instructions specific to your package client, see "Using GitHub Package Registry with your project's ecosystem."

After you publish a package, you can view the package on GitHub. For more information, see “Viewing packages.”

Pergunte a uma pessoa

NĆ£o consegue encontrar o que procura?

Entrar em contato