Archived
1
0

Automate release process

This commit is contained in:
Anmol Sethi
2020-05-08 03:08:30 -04:00
parent 4590c3a3db
commit 231e31656a
9 changed files with 125 additions and 22 deletions

16
ci/steps/publish-npm.sh Executable file
View 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 "$@"