on: push name: Build, Test and Release jobs: build: name: npm test runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: npm test uses: actions/setup-node@v1 - run: npm it - name: go test uses: ./.github/golang/ - name: Release uses: ./.github/goreleaser/ env: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REF: ${{ github. ref }} with: args: release if: contains(github.ref, 'tags')