From c88689503ff6146d6bd66a67a18ebb868ec8edf3 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Tue, 6 Oct 2026 21:33:28 +0900 Subject: [PATCH 1/2] feat: accept validated artifacts in the release workflow Co-authored-by: WillBooster (Codex CLI) --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c00e3c..d876888 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,15 @@ name: Release on: workflow_call: inputs: + artifact_name: + description: Artifact from this workflow run to download before building and releasing + required: false + type: string + artifact_path: + description: Destination for the downloaded release artifact + default: .tmp/release-artifacts + required: false + type: string dot_env_path: default: .env required: false @@ -274,6 +283,12 @@ jobs: ${{ steps.env-info.outputs.runner }} install ${{ steps.env-info.outputs.skip-scripts-option }} } fi + - if: ${{ inputs.artifact_name }} + name: Download release artifact + uses: actions/download-artifact@v8.0.1 + with: + name: ${{ inputs.artifact_name }} + path: ${{ inputs.artifact_path }} - if: ${{ !inputs.skip_build }} name: Build run: if [[ "$(cat package.json)" == *'"build":'* ]]; then ${{ steps.env-info.outputs.runner }} run build; fi From 91948726f32311d0588d7f8305a07c3c7512aa31 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Tue, 6 Oct 2026 21:53:29 +0900 Subject: [PATCH 2/2] fix: keep empty artifact paths in the release staging directory Co-authored-by: WillBooster (Codex CLI) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d876888..86fc446 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -288,7 +288,7 @@ jobs: uses: actions/download-artifact@v8.0.1 with: name: ${{ inputs.artifact_name }} - path: ${{ inputs.artifact_path }} + path: ${{ inputs.artifact_path || '.tmp/release-artifacts' }} - if: ${{ !inputs.skip_build }} name: Build run: if [[ "$(cat package.json)" == *'"build":'* ]]; then ${{ steps.env-info.outputs.runner }} run build; fi