Automate release process
This commit is contained in:
16
ci/steps/publish-npm.sh
Executable file
16
ci/steps/publish-npm.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
source ./ci/steps/lib.sh
|
||||
|
||||
if [[ ${CI-} ]]; then
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
||||
fi
|
||||
|
||||
download_artifact npm-package ./release
|
||||
yarn publish --non-interactive release
|
||||
}
|
||||
|
||||
main "$@"
|
Reference in New Issue
Block a user