feat: check token
This commit is contained in:
parent
2fecc9a1d0
commit
00bc571efa
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue