1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 01:04:04 +03:00

publish: run npm w/--unsafe-perms for pre- and post-scripts

This commit is contained in:
Shawn Allen 2019-02-05 13:13:35 -08:00
parent 6ce25b0dc5
commit 2308cef1b5

View File

@ -29,13 +29,4 @@ else
flags="$flags --tag canary" flags="$flags --tag canary"
fi fi
context="npm publish primer" npm --unsafe-perms publish $flags
export GH_STATUS_TOKEN=$GITHUB_TOKEN
npx commit-status $context pending "publishing $version..."
script/prepublish
npm publish $flags
script/postpublish
npx commit-status $context success "published $version" "https://unpkg.com/$name@$version/"