From 01b0a785b4340b6adc9f53ee024b1ec9f0af0e7c Mon Sep 17 00:00:00 2001 From: anonpenguin23 Date: Tue, 12 May 2026 09:30:13 +0300 Subject: [PATCH] ci: fix release workflows and bump version to 0.122.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .github/workflows/publish-sdk.yml | 8 ++++++-- .github/workflows/release-apt.yml | 4 ++-- .goreleaser.yaml | 3 +-- core/Makefile | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-sdk.yml b/.github/workflows/publish-sdk.yml index de9832c..dc4f305 100644 --- a/.github/workflows/publish-sdk.yml +++ b/.github/workflows/publish-sdk.yml @@ -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 }} diff --git a/.github/workflows/release-apt.yml b/.github/workflows/release-apt.yml index 9092e3f..b5edc98 100644 --- a/.github/workflows/release-apt.yml +++ b/.github/workflows/release-apt.yml @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index dfffe94..85e1f47 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,8 +9,7 @@ env: before: hooks: - - cmd: go mod tidy - dir: core + - cd core && go mod tidy builds: # orama CLI binary diff --git a/core/Makefile b/core/Makefile index d1c793b..8ba6015 100644 --- a/core/Makefile +++ b/core/Makefile @@ -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)'