Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/gitlab-ci-npmrc
https://github.com/jacobbubu/gitlab-ci-npmrc
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/gitlab-ci-npmrc
- Owner: jacobbubu
- License: mit
- Created: 2020-11-22T04:21:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T05:09:45.000Z (about 4 years ago)
- Last Synced: 2024-04-23T18:14:41.570Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 85.9 KB
- Stars: 0
- 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-npmrc
> Used to generate `.npmrc` files in the gitlab ci pipeline.
## Usage
in `.gitlab-ci.yml`:
``` yaml
script:
- |
npx @jacobbubu/gitlab-ci-npmrc ./.npmrcartifacts:
when: always
paths:
- .npmrc
````@jacobbubu/gitlab-ci-npmrc` will generate the url of the npm registry based on the namespace and project id of the current project, if the key already exists in `.npmc`, the value of the key will be preserved.