open-index/open-npm huggingface dataset:
npm package: @gitm8/ci-test
Description: test setup for CI/CD pipeline with travisCI
Author: Doc
Latest version: 1.5.1

# CI/CD test repo

[![npm version](https://badge.fury.io/js/%40gitm8%2Fci-test.svg)](https://badge.fury.io/js/%40gitm8%2Fci-test)
[![npm](https://img.shields.io/npm/l/%40gitm8%2Fci-test.svg)](./LICENSE)

Testing CI/CD for npm packages. Goal is to be able to just write business logic in libraries (or any package) you develop, without caring about release. EVER.

## install and setup

Install the following packages:
```Shell
npm i -g \
  commitizen \
  cz-conventional-changelog \
  eslint \
  eslint-config-airbnb-base \
  eslint-plugin-import
```

## expected interface
The application/library/package MUST expose the following commands:

Command|Description
---|---
`npm test`|all tests (including linting and dependency checks) go here
`npm run build`|triggering a build (MUST exist and exit with 0)


## environment variables
CI has to set the following environment variables:

env|usecase|where to get
---|---|---
`GH_TOKEN`|push tags and updated files to GitHub|[GitHub personal API token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) (set `repo` scope)
`NPM_TOKEN`|publish package to NPM registry|[NPM API token](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens)

## ToDo
* [ ] add code coverage
* [ ] add dependency check
* [ ] add linting