Skip to content

ALL-3271 Fix signing with mnemonic BCH transactions (#97) #83

ALL-3271 Fix signing with mnemonic BCH transactions (#97)

ALL-3271 Fix signing with mnemonic BCH transactions (#97) #83

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
publish:
name: 📦 Publish npm package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
docker-publish:
name: 📦️ Publish docker image
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: build image
run: docker build . --file Dockerfile -t ${{secrets.DOCKER_USER}}/tatum-kms:latest -t "${{secrets.DOCKER_USER}}/tatum-kms:$(cat ./package.json | jq -r ".version")"
- name: push image
run: docker push ${{secrets.DOCKER_USER}}/tatum-kms:latest && docker push ${{secrets.DOCKER_USER}}/tatum-kms:$(cat ./package.json | jq -r ".version")