From a7de0e9c7170f578596a72be54ceb1bb4f5b5fd5 Mon Sep 17 00:00:00 2001 From: ajutamang Date: Thu, 12 Sep 2024 11:59:49 +0545 Subject: [PATCH] chore: add semantic release config --- .github/workflows/release_build.yml | 2 +- .releaserc | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .releaserc diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 1dcbf1c..3a93a9a 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -30,7 +30,7 @@ jobs: - name: Run semantic-release run: npx semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.S3Khoj_GITHUB_TOKEN }} - name: Set up Go uses: actions/setup-go@v3 diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..8b76c8d --- /dev/null +++ b/.releaserc @@ -0,0 +1,25 @@ +{ + "branches": [ + "main" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md" + ] + } + ], + "@semantic-release/github" + + ] +} \ No newline at end of file