Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/gitlab-ci-registry
https://github.com/jacobbubu/gitlab-ci-registry
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/gitlab-ci-registry
- Owner: jacobbubu
- License: mit
- Created: 2020-11-21T11:36:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T05:35:37.000Z (about 4 years ago)
- Last Synced: 2024-12-13T20:54:37.746Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @jacobbubu/gitlab-ci-registry
> Provides a command-line tool to perform the task of setting "publishConfig.registry" in the gitlab CI pipeline file (gitlab-ci.yml).
## Intro.
If you want to publish your package to the gitlab registry, you need to set the correct URL in the `publishConfig.registry` field of `package.json`, since it contains the `project id`. You can only set this up correctly after the project has been created in GitLab.
To avoid source code containing `project id`, we provide this simple command-line tool that temporarily sets up `publicConfig.registry` by running `npx gitlab-ci-registry ./package.json`.
If `publicConfig.registry` already exists or the CI environment variables are incomplete, there will be no changes to the `package.json` file.