v1.13.0 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |