test(ci): tested using secret var directly
Some checks failed
CI / build-and-publish (push) Failing after 34s
Some checks failed
CI / build-and-publish (push) Failing after 34s
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -63,12 +63,7 @@ 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
|
npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${{ secrets.G_TOKEN }}"
|
||||||
echo "ERROR: GITEA_TOKEN is empty!" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}"
|
|
||||||
npm config set registry "${REGISTRY}"
|
npm config set registry "${REGISTRY}"
|
||||||
|
|
||||||
npm publish --ignore-scripts
|
npm publish --ignore-scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user