-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
725 additions
and
5,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Generate Changelog and Create Patch Version | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
generate-changelog: | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install standard-version | ||
run: npm install -g standard-version | ||
|
||
- name: Configure Git | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
- name: Bump version and generate changelog (patch) | ||
run: npx standard-version --release-as patch | ||
|
||
- name: Push changes | ||
run: | | ||
git push --follow-tags origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build & publish images to GHCR | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- dockerfile: ./apps/web/Dockerfile | ||
image: ghcr.io/${{ github.repository_owner }}/web | ||
- dockerfile: ./apps/api/Dockerfile | ||
image: ghcr.io/${{ github.repository_owner }}/api | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GH_PACKAGE_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ matrix.image }} | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=sha | ||
type=raw,value=latest | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ${{ matrix.dockerfile }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pnpm dlx commitlint --edit $1 | ||
bun x commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
pnpm dlx turbo format-and-lint | ||
pnpm dlx turbo check-types | ||
bun x biome ci . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
### [0.1.1](https://github.com/kaneo-app/app/compare/v0.1.0...v0.1.1) (2025-01-25) | ||
|
||
# 0.1.0 (2025-01-25) | ||
|
||
|
||
### 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)) | ||
* :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: 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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM --platform=$BUILDPLATFORM node:lts-slim AS base | ||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY bun.lockb . | ||
COPY apps/api/package.json ./apps/api/package.json | ||
COPY packages/typescript-config/package.json ./packages/typescript-config/package.json | ||
|
||
RUN npm i -g bun | ||
|
||
FROM base AS all-deps | ||
RUN bun install | ||
|
||
FROM base AS prod-deps | ||
RUN bun install | ||
|
||
FROM all-deps AS build | ||
ENV NODE_ENV=production | ||
|
||
COPY ./apps/api ./apps/api | ||
|
||
FROM oven/bun:alpine AS runtime | ||
WORKDIR /app | ||
|
||
COPY --from=prod-deps /app/node_modules ./node_modules | ||
|
||
COPY --from=build /app/apps/api ./apps/api | ||
|
||
ENV NODE_ENV=production | ||
|
||
WORKDIR /app/apps/api | ||
|
||
CMD ["bun", "run", "src/index.ts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
PRAGMA foreign_keys=OFF;--> statement-breakpoint | ||
CREATE TABLE `__new_project` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`workspace_id` text NOT NULL, | ||
`name` text NOT NULL, | ||
`description` text, | ||
`created_at` integer DEFAULT '"2025-01-25T16:10:08.340Z"' NOT NULL, | ||
FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade | ||
); | ||
--> statement-breakpoint | ||
INSERT INTO `__new_project`("id", "workspace_id", "name", "description", "created_at") SELECT "id", "workspace_id", "name", "description", "created_at" FROM `project`;--> statement-breakpoint | ||
DROP TABLE `project`;--> statement-breakpoint | ||
ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint | ||
PRAGMA foreign_keys=ON;--> statement-breakpoint | ||
CREATE TABLE `__new_task` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`project_id` text NOT NULL, | ||
`assignee_id` text NOT NULL, | ||
`title` text NOT NULL, | ||
`description` text, | ||
`status` text DEFAULT 'to-do' NOT NULL, | ||
`due_date` integer, | ||
`created_at` integer DEFAULT '"2025-01-25T16:10:08.340Z"' NOT NULL, | ||
FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade, | ||
FOREIGN KEY (`assignee_id`) REFERENCES `user`(`id`) ON UPDATE cascade ON DELETE cascade | ||
); | ||
--> statement-breakpoint | ||
INSERT INTO `__new_task`("id", "project_id", "assignee_id", "title", "description", "status", "due_date", "created_at") SELECT "id", "project_id", "assignee_id", "title", "description", "status", "due_date", "created_at" FROM `task`;--> statement-breakpoint | ||
DROP TABLE `task`;--> statement-breakpoint | ||
ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint | ||
CREATE TABLE `__new_user` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`name` text NOT NULL, | ||
`password` text NOT NULL, | ||
`email` text NOT NULL, | ||
`created_at` integer DEFAULT '"2025-01-25T16:10:08.340Z"' NOT NULL | ||
); | ||
--> statement-breakpoint | ||
INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint | ||
DROP TABLE `user`;--> statement-breakpoint | ||
ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint | ||
CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint | ||
CREATE TABLE `__new_workspace` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`name` text NOT NULL, | ||
`description` text, | ||
`owner_id` text NOT NULL, | ||
`created_at` integer DEFAULT '"2025-01-25T16:10:08.340Z"' NOT NULL, | ||
FOREIGN KEY (`owner_id`) REFERENCES `user`(`id`) ON UPDATE cascade ON DELETE cascade | ||
); | ||
--> statement-breakpoint | ||
INSERT INTO `__new_workspace`("id", "name", "description", "owner_id", "created_at") SELECT "id", "name", "description", "owner_id", "created_at" FROM `workspace`;--> statement-breakpoint | ||
DROP TABLE `workspace`;--> statement-breakpoint | ||
ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint | ||
CREATE TABLE `__new_workspace_member` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`workspace_id` text NOT NULL, | ||
`user_id` text NOT NULL, | ||
`role` text, | ||
`joined_at` integer DEFAULT '"2025-01-25T16:10:08.340Z"' NOT NULL, | ||
FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade, | ||
FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE cascade ON DELETE cascade | ||
); | ||
--> statement-breakpoint | ||
INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_id", "role", "joined_at") SELECT "id", "workspace_id", "user_id", "role", "joined_at" FROM `workspace_member`;--> statement-breakpoint | ||
DROP TABLE `workspace_member`;--> statement-breakpoint | ||
ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`; |
Oops, something went wrong.