Create drafts instead of finished releases (#9729) [skip ci]

Currently, the "Trigger GitHub release" and "Publish to npm" actions
are run in parallel. Publishing to npm takes about 15 mins (it needs to
run `make bootstrap`), so everyone watching the npm repo for
releases would get the notification before that the new version is
available on npm.

This commit marks the automatically generated GitHub releases as draft,
which then need to be manually "finalized" by real people. This will also
avoid notifying people when for some reason a publish fails.
This commit is contained in:
Nicolò Ribaudo 2019-03-21 08:26:10 +01:00 committed by GitHub
parent 2201fd839b
commit f2c55d01c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ getStdin()
repo: repoName, repo: repoName,
tag_name: tag, tag_name: tag,
body: changelog, body: changelog,
draft: true,
})) }))
.catch(err => { .catch(err => {
console.error(err); console.error(err);