Skip to content

0.14.0

0.14.0 #28

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
build-on-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 12.xs
uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Bundle
run: yarn bundle
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
- name: Build docker image
run: |
echo '${{ secrets.DOCKERHUB_PASSWORD }}' | \
docker login \
--username ${{ secrets.DOCKERHUB_USERNAME }} \
--password-stdin
export tag=${GITHUB_REF/refs\/tags\/v/}
docker build . -t grafana/har-to-k6:$tag
docker tag \
grafana/har-to-k6:$tag \
grafana/har-to-k6:latest
docker push grafana/har-to-k6:$tag
docker push grafana/har-to-k6:latest