From b66bd303912f4a100a2b5656a4c5cacfb97a31bc Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Fri, 5 Sep 2025 14:49:48 +0000 Subject: [PATCH] fix(ci): set required environment variables for npm publishing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The npm publishing step was failing because the release-npm.sh script requires MISE_VERSION and RELEASE_DIR environment variables to be set. These were previously set in the release.sh script but don't persist across GitHub Actions workflow steps. This fix explicitly exports these variables in the npm publishing step to ensure the script has access to them. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c21b04df73..dcb1e3dff3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -300,6 +300,9 @@ jobs: if: startsWith(github.event.ref, 'refs/tags/v') run: | if [[ ${DRY_RUN:-0} != 1 ]]; then + MISE_VERSION="$(./scripts/get-version.sh)" + export MISE_VERSION + export RELEASE_DIR="releases" NPM_PREFIX=@jdxcode/mise ./scripts/release-npm.sh fi env: