Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Private Bower | 692 | 4 | 3 | 5 years ago | 71 | October 19, 2017 | 52 | other | JavaScript | |
A simple private bower registry | ||||||||||
Beachball | 638 | 20 | 36 | 2 days ago | 179 | July 14, 2022 | 112 | mit | TypeScript | |
The Sunniest Semantic Version Bumper | ||||||||||
Gitpkg | 243 | 1 | 12 | a year ago | 5 | June 17, 2022 | 10 | mit | JavaScript | |
Publish packages as git tags | ||||||||||
Jenkins Stack Kubernetes | 180 | 8 months ago | apache-2.0 | Shell | ||||||
Scripts and manifests to deploy complete Jenkins on Kubernetes | ||||||||||
Gacm | 120 | 6 months ago | mit | TypeScript | ||||||
Git Account Management Tools & NPM Registry Manager | ||||||||||
Jspm Git | 44 | 68 | 21 | 6 years ago | 25 | February 13, 2018 | 3 | mit | JavaScript | |
A generic jspm registry for Git Repositories. | ||||||||||
Skipper | 42 | 20 days ago | 68 | August 25, 2021 | 4 | apache-2.0 | Python | |||
Easily dockerize your Git repository | ||||||||||
Ak Cli | 41 | 6 months ago | 19 | gpl-3.0 | ||||||
:bookmark: Collection of useful cli commands | ||||||||||
Ci | 37 | a month ago | 6 | Shell | ||||||
Gogs( GitHub )+Drone+Docker Registry | 私有化的 CI/CD & DevOps 解决方案 | ||||||||||
Git Tag Action | 29 | 6 months ago | 2 | mit | TypeScript | |||||
[GitHub Action] Get ${version} from package.json and git tag ${version} for the repository. |
Publish packages as git tags
🔧 Works with projects with build steps.
👯 Works with projects with multiple packages (monorepos).
🏎 Lightweight git tags (only the files needed are included).
Both npm and yarn support installing packages from git tags.
But things can get difficult with packages that have a build step (eg babel) and monorepos with multiples packages (eg lerna).
gitpkg publish
creates a git tag with the same files as if you were running npm publish
or yarn publish
and uploads the generated git tag to a git repository.
Also you can publish any gitpkg package to the same repository, so you can have only one repository used as common registry and you get away from your project git repository the git tags with the build code.
Node.js v10.12 or newer is required.
Via the yarn client:
$ yarn global add gitpkg
Via the npm client:
$ npm install -g gitpkg
Via the yarn client:
$ yarn global add ramasilveyra/public-registry#gitpkg-v1.0.0-beta.2-gitpkg
Via the npm client:
$ npm install -g ramasilveyra/public-registry#gitpkg-v1.0.0-beta.2-gitpkg
Publishes a package to a git repository, by default uploads the package to the git repository in the git remote origin (git remote -v
to see your git remote origin url). The package published is defined by the package.json in the current directory.
$ gitpkg publish
$ gitpkg publish --registry [email protected]:org/private-registry.git
This flag tells gitpkg to publish the package to a specific gitpkg registry.
You can also set the gitpkg registry permanently by adding "gitpkg":{"registry":"[email protected]:org/private-registry.git"}
to the package.json.
You can also configure gitpkg with a config file. Create a file named gitpkg.config.js
in the root of your project or in the root of a subpackage.
Publish the package to a specific gitpkg registry. Same as the registry flag of the cli.
Function used to create the git tags. The function receives one object pkg
, which is the content of the package.json file.
// Example content of gitpkg.config.js
module.exports = () => ({
registry: '[email protected]:org/private-registry.git',
getTagName: pkg => `${pkg.name}-v${pkg.version}-gitpkg`
});
gitpkg works by publishing tags that contain only the files in a package. The commits in these tags don't appear on any branch, so Gerrit will reject them by default:
! [remote rejected] …
(prohibited by Gerrit: update for creating new commit object not permitted)
To gain the permission gitpkg needs, add Create Reference and Push entries to the refs/tags/*
reference in the Access settings of your repository.
Feel free to dive in! Open an issue or submit PRs.
gitpkg follows the Contributor Covenant Code of Conduct.