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)'