Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

ci: adding releases action

Andrejd5d55f94878c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 000000000..28fe37ea2
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,97 @@
+name: Create Release
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: 'Version to release (leave empty for automatic versioning)'
+ required: false
+ type: string
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pull-requests: write
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ - name: Install dependencies
+ run: |
+ npm install -g conventional-changelog-cli
+ npm install -g conventional-recommended-bump
+
+ - name: Get version bump
+ id: bump
+ if: ${{ !inputs.version }}
+ run: |
+ BUMP=$(conventional-recommended-bump -p angular)
+ echo "bump=$BUMP" >> $GITHUB_OUTPUT
+
+ - name: Get current version
+ id: current_version
+ run: |
+ VERSION=$(node -p "require('./package.json').version")
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
+
+ - name: Calculate new version
+ id: new_version
+ run: |
+ CURRENT_VERSION=${{ steps.current_version.outputs.version }}
+ if [ -n "${{ inputs.version }}" ]; then
+ NEW_VERSION=${{ inputs.version }}
+ else
+ BUMP=${{ steps.bump.outputs.bump }}
+ NEW_VERSION=$(node -e "
+ const semver = require('semver');
+ const current = '$CURRENT_VERSION';
+ const bump = '$BUMP';
+ console.log(semver.inc(current, bump));
+ ")
+ fi
+ echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
+
+ - name: Update version in package.json
+ run: |
+ NEW_VERSION=${{ steps.new_version.outputs.version }}
+ npm version $NEW_VERSION --no-git-tag-version
+
+ - name: Generate changelog
+ run: |
+ conventional-changelog -p angular -i CHANGELOG.md -s
+
+ - name: Create Release Commit
+ run: |
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add CHANGELOG.md package.json
+ git commit -m "chore(release): v${{ steps.new_version.outputs.version }}"
+ git tag "v${{ steps.new_version.outputs.version }}"
+
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ${{ github.ref }}
+ tags: true
+
+ - name: Create GitHub Release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: v${{ steps.new_version.outputs.version }}
+ name: Release v${{ steps.new_version.outputs.version }}
+ body_path: CHANGELOG.md
+ draft: false
+ prerelease: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16560a0dd..3c65331d2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,48 +1,6 @@
-# 0.6.0 (2025-01-31)
-
-
-### Bug Fixes
-
-* :bug: fixing deleted workspaces being cached ([624b206](https://github.com/kaneo-app/app/commit/624b20676fedf1b1a5871f916a5c1d5c38a5d2cb))
-* :bug: fixing overflowing workspace names ([0c2ab27](https://github.com/kaneo-app/app/commit/0c2ab2705d82c86ace8b4919c59d7773b63e989d))
-* :bug: fixing route generation for vite ([73ddd6d](https://github.com/kaneo-app/app/commit/73ddd6d0138e9223921cbefdd727b2fa61408be0))
-* :bug: remove unused import ([fa639e1](https://github.com/kaneo-app/app/commit/fa639e15e1c847d4ac89b7925fb2606b6e5900a4))
-* :construction_worker: fixing build on pipeline ([767ba10](https://github.com/kaneo-app/app/commit/767ba103aca3beeda0a6f0a0df4459ce071f3b74))
-* :green_heart: fixing formatting in package.json ([4644f0f](https://github.com/kaneo-app/app/commit/4644f0f6e3413591c9dd837a67df7cf8e735718e))
-* :sparkles: format drizzle.config.ts ([cccd3ae](https://github.com/kaneo-app/app/commit/cccd3aea9420d4815501ec0d15ef1dc08a1f1b15))
-* changing release branch ([3636788](https://github.com/kaneo-app/app/commit/3636788ca23bf418ef098fa2dad4c0da67f09d74))
-* fixing build context ([fa736c5](https://github.com/kaneo-app/app/commit/fa736c5c60ac75b9a8d9a2f583c49b08d597d1cc))
-* listing web's nginx conf ([9ae5b32](https://github.com/kaneo-app/app/commit/9ae5b3209d84529c7edc482f118826502327dfe9))
-* refactoring publishing flow ([5471b88](https://github.com/kaneo-app/app/commit/5471b88ee244064b69853fd0a914cf32803f9f8f))
-* removing unused import ([9466dc5](https://github.com/kaneo-app/app/commit/9466dc5d18e46d8f30000cf110ed255b53a3045d))
-* removing unused packages ([20a8c66](https://github.com/kaneo-app/app/commit/20a8c6694d1e1bc345655a4b85a56bf7a981dc48))
-* removing unused packages ([49ba8d1](https://github.com/kaneo-app/app/commit/49ba8d196d44715dd736ad3de4690a70686f46a3))
-* removing unused packages ([de87b29](https://github.com/kaneo-app/app/commit/de87b298d00cddf7fff0799bcce7149beb7f2123))
-* updating docker context ([0bb17b5](https://github.com/kaneo-app/app/commit/0bb17b5d786c3ef110fbd16f08701b139bf39c7f))
-* updating reamde ([d6d3ed8](https://github.com/kaneo-app/app/commit/d6d3ed8bf8cab3b9a27747c66c4d0ffdf9e2ba13))
-
-
-### Features
-
-* :construction_worker: adding workflow to lint project ([382d6c5](https://github.com/kaneo-app/app/commit/382d6c5ef0a084d026a7238689f8a357fc05c5fa))
-* :construction_worker: updating husky and commitlint ([33e2920](https://github.com/kaneo-app/app/commit/33e292027fea1d6dc4546a61b869f180e7d129e0))
-* :construction_worker: updating workflow name ([f13d4ef](https://github.com/kaneo-app/app/commit/f13d4eff1c021be68b01c7381439d28629b6e22b))
-* :fire: adding initial kanban board ([0e2734a](https://github.com/kaneo-app/app/commit/0e2734a4757722d753be398c9f7273b7fdfc1274))
-* :fire: migrating to sessions, using file routes, adding auth provider ([d6f8ecc](https://github.com/kaneo-app/app/commit/d6f8ecce077e3fac67111e7585f81b6bd268d191))
-* :sparkles: adding crud for workspaces ([faad3a4](https://github.com/kaneo-app/app/commit/faad3a49a327ed3cbee14d96a923997a5daf8bbd))
-* :sparkles: adding marketing image ([841eee9](https://github.com/kaneo-app/app/commit/841eee9fcf4440370fdd95ee73731d591a6795b4))
-* :sparkles: adding marketing image ([91ac6c1](https://github.com/kaneo-app/app/commit/91ac6c189ddc81535cf498abcfb8e63a8c32cead))
-* :sparkles: adding marketing image ([e0dbd6b](https://github.com/kaneo-app/app/commit/e0dbd6bd41a440a0114e5c413d673601153d58a6))
-* :sparkles: adding marketing image ([a8568c1](https://github.com/kaneo-app/app/commit/a8568c1f6d04685d387996448830b1fb166740e5))
-* :sparkles: adding projects ([db2f600](https://github.com/kaneo-app/app/commit/db2f600d58ea45bf410f8b91de0577f969b2fbda))
-* :sparkles: finishing authentication, adding color modes ([da9c10f](https://github.com/kaneo-app/app/commit/da9c10fa56ccf479977d3fad8a547d684067256d))
-* :sparkles: finishing socket communication for tasks ([dcb8475](https://github.com/kaneo-app/app/commit/dcb84754b3bb970415bb7e16200224bef5271823))
-* :sparkles: initial commit for projects ([200d9a6](https://github.com/kaneo-app/app/commit/200d9a6df400bab61bbc63f2a28dc3807da77606))
-* :sparkles: updating logo design ([b8250e6](https://github.com/kaneo-app/app/commit/b8250e68fc3f8013b548750fb87140cb55811ac7))
-* adding docker images and compose ([537b47e](https://github.com/kaneo-app/app/commit/537b47e328b8b5ee2ef1f0ffb71e78e8e3a42ee8))
-* **create-turbo:** apply official-starter transform ([6fcda66](https://github.com/kaneo-app/app/commit/6fcda66be3d9e10f32705cd0a59d62eae0e8ef27))
-* **create-turbo:** apply package-manager transform ([2aaf064](https://github.com/kaneo-app/app/commit/2aaf064f095549ad6600e89954aba9fc2c8385d9))
-* **create-turbo:** create basic ([3b8654f](https://github.com/kaneo-app/app/commit/3b8654f88adfe575bdd6190af85ce8daeea7f810))
-
+# Changelog
+All notable changes to this project will be documented in this file.
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
\ No newline at end of file