fix(release): write npm auth for latest promotion

This commit is contained in:
Peter Steinberger 2026-04-11 04:28:53 +01:00
parent 38cd7f72b6
commit dfd4e9f8a1
No known key found for this signature in database

View file

@ -493,6 +493,7 @@ jobs:
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
run: |
set -euo pipefail
printf '//registry.npmjs.org/:_authToken=%s\n' "${NODE_AUTH_TOKEN}" > "${HOME}/.npmrc"
npm whoami >/dev/null
npm dist-tag add "openclaw@${RELEASE_VERSION}" latest
promoted_latest="$(npm view openclaw dist-tags.latest)"