From 0b7f789de4ae88c9a438d7033a15a6fc265e1875 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 22 Apr 2020 22:52:32 -0700 Subject: [PATCH] devops: try using another Github Actions event to trigger releases (#1931) The [official documentation](https://help.github.com/en/actions/language-and-framework-guides/publishing-nodejs-packages#publishing-packages-to-the-npm-registry) suggests using `created` event, but it didn't work for us. As someone mentioned on [github community](https://github.community/t5/GitHub-Actions/Workflow-set-for-on-release-not-triggering-not-showing-up/m-p/53236#M8758), it looks like the `created` event is actually issued when release draft is first created. Try using [`published`](https://help.github.com/en/actions/reference/events-that-trigger-workflows#release-event-release) event instead. --- .github/workflows/publish_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index ef0559992f..e49ab270b8 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -2,7 +2,7 @@ name: "release" on: release: - types: [created] + types: [published] env: CI: true