From 4e0ed32ac47a426603d6ebf9a0b3503e806b06f5 Mon Sep 17 00:00:00 2001 From: Simon Ho Date: Sun, 9 Feb 2020 23:10:55 -0800 Subject: [PATCH] Automatically create releases --- .github/workflows/continuous-delivery.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index db2f4dc..8470eae 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -38,3 +38,17 @@ jobs: env: CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} + + - name: Check Version Change + uses: MontyD/package-json-updated-action + id: version-updated + env: + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + + - name: Create Release + uses: 'marvinpinto/action-automatic-releases@latest' + if: steps.version-updated.outputs.has-updated + with: + repo_token: '${{ secrets.ACCESS_TOKEN }}' + title: steps.version-updated.outputs.current-package-version + prerelease: false