From 68072b5f68c808e218106651588afba72b0b355f Mon Sep 17 00:00:00 2001 From: zyachel Date: Sat, 28 Jan 2023 22:05:21 +0530 Subject: [PATCH] ci: use locally generated changelog instead of github actions this commit replaces the previous workflow of bumping version, generating changelog, and tagging release using github actions with a local one(using `commit-and-tag-version`) --- .github/workflows/release.yml | 29 ---------------------------- .versionrc | 36 +++++++++++++++++++++++++++++++++++ package.json | 4 ++++ 3 files changed, 40 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/release.yml create mode 100644 .versionrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index bffcf52..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: release -on: - push: - branches: - - main - - next - -jobs: - changelog-and-release: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: generate changelog and bump version - id: changelog - uses: TriPSs/conventional-changelog-action@v3 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: create release - uses: actions/create-release@v1 - if: ${{ steps.changelog.outputs.skipped == 'false' }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.changelog.outputs.tag }} - release_name: ${{ steps.changelog.outputs.tag }} - body: ${{ steps.changelog.outputs.clean_changelog }} diff --git a/.versionrc b/.versionrc new file mode 100644 index 0000000..6ead159 --- /dev/null +++ b/.versionrc @@ -0,0 +1,36 @@ +{ + "types": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "chore", + "hidden": true + }, + { + "type": "docs", + "hidden": true + }, + { + "type": "style", + "hidden": true + }, + { + "type": "refactor", + "hidden": true + }, + { + "type": "perf", + "hidden": true + }, + { + "type": "test", + "hidden": true + } + ] +} diff --git a/package.json b/package.json index db61dc8..47bfff6 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "type": "module", "author": "libremdb-contributors", "license": "AGPL-3.0-or-later", + "repository": { + "type": "git", + "url": "https://github.com/zyachel/libremdb/" + }, "scripts": { "dev": "next dev", "build": "next build",