ledger-bitsong-js
Version:
Node API for BitSong App (Ledger Nano S/X)
63 lines (57 loc) • 1.43 kB
YAML
version: 2
defaults:
working_directory: ~/repo
docker:
- image: circleci/node:12.13.1
jobs:
build:
<<:
steps:
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- checkout
- run: yarn install
- run: yarn build
test:
<<:
steps:
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- checkout
- run: yarn install
- run: yarn test:unit
publish:
<<:
steps:
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- checkout
- 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:
- build
- test
filters:
tags:
only: /^v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/