From 9a840d070db608d70e5d414740467299b7676dd8 Mon Sep 17 00:00:00 2001 From: Akash Jag Date: Fri, 6 Feb 2026 14:47:40 -0800 Subject: [PATCH 1/3] fix: restructure release workflow and bump version --- .github/workflows/release.yml | 36 ++++++++++++++++++++++++++++++----- package.json | 2 +- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62766e4..140731b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,7 @@ jobs: runs-on: ${{ matrix.os }} # SECURITY: Only grant write permission where needed permissions: - contents: write + contents: read attestations: write # SECURITY: For artifact attestation id-token: write # SECURITY: For OIDC signing @@ -164,11 +164,37 @@ jobs: with: subject-path: "shield-*" - - name: Upload binary and checksum to Release - uses: softprops/action-gh-release@v2 + - name: Upload artifacts + uses: actions/upload-artifact@v4 with: - files: | + name: binary-${{ matrix.platform }}-${{ matrix.arch }} + path: | shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }} shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}.sha256 + + # ========================================== + # Job 3: Create GitHub Release with all binaries + # ========================================== + create-release: + name: Create GitHub Release + needs: build-binaries + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + pattern: binary-* + merge-multiple: true + + - name: List release files + run: ls -la shield-* + + - name: Create Release + uses: softprops/action-gh-release@v2 + with: + files: shield-* env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index f288061..bbbd9dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@yieldxyz/shield", - "version": "1.1.1", + "version": "1.2.0", "description": "Zero-trust transaction validation library for Yield.xyz integrations.", "packageManager": "pnpm@10.12.2", "main": "./dist/index.js", From 5b9f467acfac9c3413fc7e895908c57528cb1cf5 Mon Sep 17 00:00:00 2001 From: Akash Jag Date: Fri, 6 Feb 2026 14:54:58 -0800 Subject: [PATCH 2/3] fix: windows artifact path --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 140731b..e439f91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -169,8 +169,13 @@ jobs: with: name: binary-${{ matrix.platform }}-${{ matrix.arch }} path: | - shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }} - shield-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}.sha256 + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: binary-${{ matrix.platform }}-${{ matrix.arch }} + path: | + shield-${{ matrix.platform == 'win32' && 'windows' || matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }} + shield-${{ matrix.platform == 'win32' && 'windows' || matrix.platform }}-${{ matrix.arch }}${{ matrix.platform == 'win32' && '.exe' || '' }}.sha256 # ========================================== # Job 3: Create GitHub Release with all binaries From 0babf5931a0a641496de55f06250495eb86d85d6 Mon Sep 17 00:00:00 2001 From: Akash Jag Date: Fri, 6 Feb 2026 15:00:19 -0800 Subject: [PATCH 3/3] fix: typo --- .github/workflows/release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e439f91..efd592e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -164,11 +164,6 @@ jobs: with: subject-path: "shield-*" - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: binary-${{ matrix.platform }}-${{ matrix.arch }} - path: | - name: Upload artifacts uses: actions/upload-artifact@v4 with: