Origami Frontend Components & Services

Readme: origami-ci-tools

Continuous Integration tools for Origami components

Origami CI Tools is a wrapper around the tools used to build and test Origami components, to make it easier to keep the steps up to date across components.

It will help you run the component's tests, and publish the component to npm.


Install it as a devDependency in your component, and use it in circle-ci!

$ npm install -D origami-ci-tools
      - image: circleci/node:10-browsers
      - checkout
      - npx origami-ci branch
      - image: circleci/node:10
      - checkout
      - npx origami-ci release

Environment Variables

origami-ci expects the following Environment Variables to be set:

name description example
ORIGAMI_CI_NAME The project name (used when generating a package.json) o-colors
CIRCLE_PROJECT_REPONAME CircleCI-specific alternative to ORIGAMI_CI_NAME. Set automatically by CircleCI o-colors
ORIGAMI_CI_VERSION the version of the project being built 1.0.0
CIRCLE_TAG CircleCI-specific alternative to ORIGAMI_CI_VERSION. Set automatically by CircleCI v1.0.0
ORIGAMI_PULL_REQUEST the url of a pull request for the build, if any https://github.com/Financial-Times/o-test-component/pull/1
CIRCLE_PULL_REQUEST CircleCI-specific alternative to ORIGAMI_PULL_REQUEST. Set automatically by CircleCI https://github.com/Financial-Times/o-test-component/pull/1
NPM_TOKEN OR NPM_AUTH_TOKEN The auth token used to publish npm packages 09448d16328f2c7...
GITHUB_TOKEN The auth token used to comment on Github pull requests r0wANL3eJ4keacHee1234o==

Migration Guides

State Major Version Last Minor Release Migration guide
✨ active 3 N/A migrate to v3
⚠ maintained 2 N/A migrate to v2
⚠ maintained 1 1.3 N/A
active Origami v1 (Bower)
Switch component view

GitHub: origami-ci-tools