From ec2d5f97c5b4386c9b5eac19f13214f15d4c4a87 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Thu, 4 Jul 2024 19:03:59 +0545 Subject: [PATCH] fix: add releaserc --- .github/workflows/test.yml | 6 +++++- .releaserc | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .releaserc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa071a7a..34d8a8a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,9 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: build: name: Build for ${{ matrix.os }} diff --git a/.releaserc b/.releaserc new file mode 100644 index 00000000..347c0348 --- /dev/null +++ b/.releaserc @@ -0,0 +1,20 @@ +branches: + - name: main +plugins: + - - "@semantic-release/commit-analyzer" + - releaseRules: + - { type: doc, scope: README, release: patch } + - { type: fix, release: patch } + - { type: chore, release: patch } + - { type: refactor, release: patch } + - { type: feat, release: patch } + - { type: ci, release: patch } + - { type: style, release: patch } + parserOpts: + noteKeywords: + - MAJOR RELEASE + - "@semantic-release/release-notes-generator" + - - "@semantic-release/github" + # From: https://github.com/semantic-release/github/pull/487#issuecomment-1486298997 + - successComment: false + failTitle: false