Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacobbubu/gitlab-ci-npmrc


https://github.com/jacobbubu/gitlab-ci-npmrc

Last synced: 14 days ago
JSON representation

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 ./.npmrc

artifacts:
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.