From 00bc571efa63484843c75d17c35c607f0923d6cd Mon Sep 17 00:00:00 2001 From: Errilaz Date: Sat, 2 May 2026 03:36:05 +0200 Subject: [PATCH] feat: check token --- actions/release/action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/actions/release/action.yml b/actions/release/action.yml index 425d30e..2238927 100644 --- a/actions/release/action.yml +++ b/actions/release/action.yml @@ -23,11 +23,16 @@ runs: shell: bash run: bun install --frozen-lockfile - - name: Configure npm auth + - name: Verify NPM_TOKEN shell: bash env: NPM_TOKEN: ${{ inputs.npm-token }} - run: npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}" + run: | + if [ -z "$NPM_TOKEN" ]; then + echo "::error::NPM_TOKEN is empty or not set" + exit 1 + fi + echo "NPM_TOKEN is set (${#NPM_TOKEN} chars)" - name: Run multi-semantic-release shell: bash