From 817da42453d9b671f5b7efc44cbac39a0770500f Mon Sep 17 00:00:00 2001 From: Zoey Rose Date: Thu, 6 Aug 2026 14:55:50 +0000 Subject: [PATCH] feat(release): establish semantic releases --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ .releaserc.json | 9 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .releaserc.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d71706c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Semantic Release + +on: + push: + branches: [master] + +permissions: + contents: write + issues: write + pull-requests: write + +concurrency: + group: semantic-release + cancel-in-progress: false + +jobs: + release: + name: Semantic release + runs-on: ubuntu-24.04 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Analyze commits and publish + env: + GH_TOKEN: ${{ github.token }} + run: >- + npx --yes + --package=semantic-release@25.0.9 + --package=conventional-changelog-conventionalcommits@10.2.1 + semantic-release diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..ae982eb --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,9 @@ +{ + "branches": ["master"], + "tagFormat": "v${version}", + "plugins": [ + ["@semantic-release/commit-analyzer", {"preset": "conventionalcommits", "releaseRules": [{"type": "*", "release": "patch"}]}], + ["@semantic-release/release-notes-generator", {"preset": "conventionalcommits"}], + "@semantic-release/github" + ] +}