mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-30 01:06:11 +00:00
ci: switch npm release workflow to trusted publishing
This commit is contained in:
@@ -20,16 +20,7 @@ fi
|
||||
|
||||
echo "Resolved package version: ${package_version}"
|
||||
echo "Resolved release channel: ${release_channel}"
|
||||
|
||||
if [[ -n "${NODE_AUTH_TOKEN:-}" ]]; then
|
||||
if [[ "${mode}" == "--dry-run" ]]; then
|
||||
echo 'Would write npm auth config to $HOME/.npmrc using NODE_AUTH_TOKEN'
|
||||
else
|
||||
printf '//registry.npmjs.org/:_authToken=%s\n' "${NODE_AUTH_TOKEN}" > "${HOME}/.npmrc"
|
||||
fi
|
||||
else
|
||||
echo 'No NODE_AUTH_TOKEN set in this environment'
|
||||
fi
|
||||
echo "Publish auth: GitHub OIDC trusted publishing"
|
||||
|
||||
printf 'Publish command:'
|
||||
printf ' %q' "${publish_cmd[@]}"
|
||||
|
||||
Reference in New Issue
Block a user