From 01956d2c3966c04ca3df854ef70d4e2cc4282511 Mon Sep 17 00:00:00 2001 From: Anton Kovalev Date: Sat, 30 Mar 2024 02:24:00 +0300 Subject: [PATCH] feat: configuration semantic-release --- .github/workflows/main.yml | 23 ++++++++++++++++++++++- .releaserc | 7 +++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .releaserc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b41d912..7c8a09c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,4 +97,25 @@ jobs: with: context: . file: ./Dockerfile - push: false \ No newline at end of file + push: false + + semantic-release: + needs: [docker-build] + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Semantic Release + run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..4790a47 --- /dev/null +++ b/.releaserc @@ -0,0 +1,7 @@ +{ + "branches": ["main"], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator" + ] +}