feat: check token

This commit is contained in:
Dan Finch 2026-05-02 03:36:05 +02:00
parent 2fecc9a1d0
commit 00bc571efa

View file

@ -23,11 +23,16 @@ runs:
shell: bash shell: bash
run: bun install --frozen-lockfile run: bun install --frozen-lockfile
- name: Configure npm auth - name: Verify NPM_TOKEN
shell: bash shell: bash
env: env:
NPM_TOKEN: ${{ inputs.npm-token }} 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 - name: Run multi-semantic-release
shell: bash shell: bash