Skip to content

fix(cli): use display_name instead of handle in club members output #7

fix(cli): use display_name instead of handle in club members output

fix(cli): use display_name instead of handle in club members output #7

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
id-token: write
jobs:
build:
name: Build binaries
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
binary: hivo-linux-amd64
- goos: darwin
goarch: amd64
binary: hivo-darwin-amd64
- goos: darwin
goarch: arm64
binary: hivo-darwin-arm64
- goos: windows
goarch: amd64
binary: hivo-windows-amd64.exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
working-directory: cli
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -ldflags="-s -w -X main.version=${{ github.ref_name }}" -o ../dist/${{ matrix.binary }} .
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary }}
path: dist/${{ matrix.binary }}
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
npm-publish:
name: Publish to npm
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm
run: npm install -g npm@latest
- name: Set version
working-directory: npm
run: |
VERSION=${GITHUB_REF_NAME#v}
npm version $VERSION --no-git-tag-version --allow-same-version
- name: Publish
working-directory: npm
run: npm publish --access public --provenance