-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (43 loc) · 1.23 KB
/
build-on-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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