From d94702d7d8dae8a2b24db70d1b7d9e2de17dc048 Mon Sep 17 00:00:00 2001 From: Adarsh Singh <63918341+adarsh-sgh@users.noreply.github.com> Date: Thu, 27 Oct 2022 12:57:03 +0530 Subject: [PATCH] Add action to automatically create release --- .github/workflows/create-release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..d18813d --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,23 @@ +name: Automatic Release + +on: + # When a change is pushed to package.json in main branch + push: + branches: ['master'] + paths: ['package.json'] + # Manual run + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + # Required to access package.json + - name: Checkout + uses: actions/checkout@v3 + + - name: Update Release + uses: aynp/node-automatic-release@v1.2.0 + with: + draft_release: false + generate_release_notes: true