test(ci): test ptinting gitea token
Some checks failed
CI / build-and-publish (push) Failing after 49s
Some checks failed
CI / build-and-publish (push) Failing after 49s
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -63,6 +63,11 @@ jobs:
|
|||||||
OWNER="${GITHUB_REPOSITORY_OWNER}"
|
OWNER="${GITHUB_REPOSITORY_OWNER}"
|
||||||
REGISTRY="https://${HOST}/api/packages/${OWNER}/npm"
|
REGISTRY="https://${HOST}/api/packages/${OWNER}/npm"
|
||||||
|
|
||||||
|
if [ -z "$G_TOKEN" ]; then
|
||||||
|
echo "ERROR: GITEA_TOKEN is empty!" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}"
|
npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}"
|
||||||
npm config set registry "${REGISTRY}"
|
npm config set registry "${REGISTRY}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user