From 0f510e935ebbda9740933c6b7aa22f7ab6a5e154 Mon Sep 17 00:00:00 2001 From: Scott Andrews Date: Sun, 20 Sep 2026 19:06:28 -0400 Subject: [PATCH] Ensure correct package is checked for pre-releases Signed-off-by: Scott Andrews --- .github/workflows/ci.yaml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 594066b..f2239b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -77,7 +77,7 @@ jobs: run: tar -xvf components.tar -C lib - name: Get interface version id: interface_version - run: echo "VERSION=$( wasm-tools component wit lib/interface.wasm --json | jq -r '.packages[0].name' | cut -d'@' -f2 )" >> $GITHUB_OUTPUT + run: echo "VERSION=$( wasm-tools component wit lib/interface.wasm --json | jq -r '[.packages[] | select(.name | contains("${GITHUB_REPOSITORY/\//:}@"))][0].name' | cut -d'@' -f2 )" >> $GITHUB_OUTPUT - name: Get tag version if: startsWith(github.ref, 'refs/tags/') id: tag_version diff --git a/Makefile b/Makefile index 181c18d..c6397c5 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,8 @@ wit/deps: wkg.toml $(shell find wit -type f -name "*.wit" -not -path "deps") components/wit/deps: wit/deps components/wkg.toml $(shell find components/wit -type f -name "*.wit" -not -path "deps") ( cd components && wkg fetch ) -.PHONY: publish -publish: $(shell find lib -type f -name "*.wasm" | sed -e 's:^lib/:publish-:g') +.PHONY: publish ## Publish each component in the lib directory +publish: $(shell find lib -maxdepth 1 -type f -name "*.wasm" | sed -e 's:^lib/:publish-:g') .PHONY: publish-% publish-%: