Skip to content

v1.9.0

v1.9.0 #15

Workflow file for this run

name: Build 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 18.x
uses: actions/setup-node@v1
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Format
run: yarn format
- 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 loadimpact/postman-to-k6:$tag
# docker tag \
# loadimpact/postman-to-k6:$tag \
# loadimpact/postman-to-k6:latest
# docker push loadimpact/postman-to-k6:$tag
# docker push loadimpact/postman-to-k6:latest