ci: fix release workflows and bump version to 0.122.4

- goreleaser: switch hooks to v1 string syntax (was map syntax, caused
  yaml unmarshal error on action v1.26.2)
- release-apt: build ./cmd/cli and ./cmd/node as packages (was building
  single .go files, missed sibling files → undefined: runCLI)
- publish-sdk: remove main-only guard; nightly releases now publish to
  npm with --tag nightly (stable releases still go to @latest)
- bump VERSION to 0.122.4 for first end-to-end release pipeline test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
anonpenguin23 2026-05-12 09:30:13 +03:00
parent 887669ae36
commit fd45d26d51
4 changed files with 10 additions and 7 deletions

View File

@ -20,7 +20,6 @@ jobs:
publish:
name: Build & Publish @debros/orama
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event.release.target_commitish == 'main'
defaults:
run:
working-directory: sdk
@ -70,7 +69,12 @@ jobs:
- name: Publish
if: github.event_name == 'release' || inputs.dry-run != true
run: npm publish --access public
run: |
if [[ "${{ github.event.release.target_commitish }}" != "main" && "${{ github.event_name }}" == "release" ]]; then
npm publish --access public --tag nightly
else
npm publish --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@ -58,8 +58,8 @@ jobs:
LDFLAGS="-X 'main.version=$VERSION' -X 'main.commit=$COMMIT' -X 'main.date=$DATE'"
mkdir -p build/usr/local/bin
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama cmd/cli/main.go
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-node cmd/node/main.go
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama ./cmd/cli
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-node ./cmd/node
# Build the entire gateway package so helper files (e.g., config parsing) are included
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-gateway ./cmd/gateway

View File

@ -9,8 +9,7 @@ env:
before:
hooks:
- cmd: go mod tidy
dir: core
- cd core && go mod tidy
builds:
# orama CLI binary

View File

@ -63,7 +63,7 @@ test-e2e-quick:
.PHONY: build clean test deps tidy fmt vet lint install-hooks push-devnet push-testnet rollout-devnet rollout-testnet release
VERSION := 0.122.3
VERSION := 0.122.4
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'