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:
parent
6ce25b0dc5
commit
2308cef1b5
@ -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/"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user