cosmos-delegation-js
Version:
Node API for Cosmos Delegation using Ledger Nano S/X
63 lines (57 loc) • 1.35 kB
YAML
version: 2
defaults:
working_directory: ~/repo
docker:
- image: circleci/node:11.12.0
jobs:
build:
<<:
steps:
- checkout
- run: sudo apt install build-essential libusb-1.0-0-dev
- run: yarn install
- run: yarn build
test:
<<:
steps:
- checkout
- run: sudo apt install build-essential libusb-1.0-0-dev
- run: yarn install
- run: yarn test:unit
publish:
<<:
steps:
- checkout
- run: sudo apt install build-essential libusb-1.0-0-dev
- run: yarn install
- run: yarn build
- run:
name: prepare authentication config
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
- run:
name: Update tag
command: npm --no-git-tag-version version $CIRCLE_TAG
- run:
name: Publish package
command: npm publish
workflows:
version: 2
test-suite:
jobs:
- build:
filters:
tags:
only: /.*/
- test:
filters:
tags:
only: /.*/
- publish:
requires:
- test
- build
filters:
tags:
only: /^v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/