Manage NPM packages with Concourse
10M+
Concourse resource to fetch and publish NPM package to the public and private registries.
Add the resource type to your pipeline:
resource_types:
- name: npm
type: docker-image
source:
repository: timotto/concourse-npm-resource
package: Required. Package name.scope: Optional. Use scope-name as scope value instead of using @scope-name/package-name as package name.registry.uri: Optional. Registry containing the package, either a public mirror or a private registry. Defaults to https://registry.npmjs.org/.registry.token: Optional. Access credentials for the registry, use npm login on your machine and look for the _authToken value in your ~/.npmrc.check: Check for new versions of the packageThe latest version of the package available using the source.list line is returned.
in: Fetch a version of the packageFetches a given package, placing the following in the destination:
version: The version number of the package.node_modules: The package including dependencies.skip_download: Optional. Do not download the package including dependencies, just save the version file.out: Publish a packagePublishes the given NPM package to a private or public registry.
path: Required. Path to the directory containing the package.json file.version: Optional. Path to a file containing the version, overrides the version stored in package.json.Define the resource:
resources:
- name: jasmine
type: npm
check_every: 24h
source:
package: jasmine
scope: @myorg
registry:
uri: https://private.registry.domain/some/path
token: NpmToken.as-seen-in-HOME-.npmrc
Add to job:
jobs:
# ...
plan:
- get: jasmine
trigger: true
Content type
Image
Digest
Size
49.9 MB
Last updated
almost 5 years ago
docker pull timotto/concourse-npm-resource