We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4798c9 commit 9fa3c32Copy full SHA for 9fa3c32
1 file changed
scripts/npm-publish.sh
@@ -65,7 +65,9 @@ npm_publish_with_retry() {
65
local delay=5
66
67
for attempt in $(seq 1 "$max_attempts"); do
68
- if (cd "$pkg_dir" && npm publish --tag "$tag"); then
+ local provenance_flag=""
69
+ [ "${GITHUB_ACTIONS:-false}" = "true" ] && provenance_flag="--provenance"
70
+ if (cd "$pkg_dir" && npm publish --tag "$tag" $provenance_flag); then
71
return 0
72
fi
73
if [ "$attempt" -lt "$max_attempts" ]; then
0 commit comments