@gitm8/ci-test

1.5.1 • Public • Published

CI/CD test repo

npm version npm

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:

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 (set repo scope)
NPM_TOKEN publish package to NPM registry NPM API token

ToDo

  • [ ] add code coverage
  • [ ] add dependency check
  • [ ] add linting

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.5.1
    2
    • latest

Version History

Package Sidebar

Install

npm i @gitm8/ci-test

Weekly Downloads

2

Version

1.5.1

License

Apache-2.0

Unpacked Size

17.3 kB

Total Files

10

Last publish

Collaborators

  • gitm8