Skip to content

Commit

Permalink
chore: Release v0.0.1-alpha.7 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei authored Aug 22, 2024
2 parents 7be0ccc + 512699c commit 7bf6aae
Show file tree
Hide file tree
Showing 176 changed files with 5,898 additions and 2,675 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ name: Build

on:
push:
branches:
- "**"
tags:
- "v*"
workflow_dispatch:

inputs:
tag_version:
description: "Tag Version"
required: true
env:
VITE_WEB_URL: ${{ vars.VITE_WEB_URL }}
VITE_API_URL: ${{ vars.VITE_API_URL }}
Expand Down Expand Up @@ -118,43 +125,25 @@ jobs:
path: |
out/make/**/*.dmg
retention-days: 90

- run: npx changelogithub
if: github.ref_type == 'tag' || github.event.inputs.tag_version != ''
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Setup Version
id: version
uses: ./.github/actions/setup-version
- name: Create Release Draft
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || github.event.inputs.tag_version != ''
uses: softprops/action-gh-release@v2
with:
name: v${{ steps.version.outputs.APP_VERSION }}
draft: true
prerelease: false
draft: false
prerelease: true
tag_name: v${{ steps.version.outputs.APP_VERSION }}
files: |
out/make/**/*.dmg
out/make/**/*.zip
out/make/**/*.exe
out/make/**/*.AppImage
out/make/**/*.yml
changelog:
needs: [release]
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
48 changes: 48 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tag on SemVer Commit

on:
push:
branches:
- main

jobs:
create_tag:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Extract SemVer using Node.js
id: extract_semver
run: |
node -e '
const execSync = require("child_process").execSync;
const fs = require("fs");
const commitMessage = execSync("git log -1 --pretty=%B").toString("utf-8");
const semverRegex = /chore: Release (v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-.]+)?)/;
const match = commitMessage.match(semverRegex);
if (match) {
fs.appendFileSync(process.env.GITHUB_ENV, `tag_version=${match[1]}\n`);
} else {
console.log("No SemVer found in commit body.");
process.exit(0);
}
'
- name: Create a new tag
if: ${{ env.tag_version }}
run: |
git tag ${{ env.tag_version }}
git push origin ${{ env.tag_version }}
- name: Trigger Build Workflow
if: ${{ env.tag_version }}
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/dispatches \
-d '{"ref":"main", "inputs": {"tag_version": "${{ env.tag_version }}"}}'
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// ["tw\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]

["tw`([^`]*)`", "([^`]*)"]

],

// If you do not want to autofix some rules on save
Expand Down
953 changes: 953 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions components.json

This file was deleted.

1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default defineConfig(
},
rules: {
"unicorn/prefer-math-trunc": "off",
"@eslint-react/no-clone-element": 0,
"no-restricted-globals": [
"error",
{
Expand Down
5 changes: 5 additions & 0 deletions icons/mgc/download_2_cute_fi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/mgc/fullscreen_2_cute_re.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/mgc/fullscreen_cute_re.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/mgc/fullscreen_exit_cute_re.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 45 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Follow",
"type": "module",
"version": "0.0.1-alpha.6",
"version": "0.0.1-alpha.7",
"private": true,
"packageManager": "pnpm@9.7.0",
"packageManager": "pnpm@9.7.1",
"description": "Next generation information browser",
"author": "Follow Team",
"license": "GPL-3.0-only",
Expand All @@ -17,6 +17,7 @@
"build": "npm run typecheck && electron-vite build --outDir=dist && electron-forge make",
"build:macos": "npm run typecheck && electron-vite build --outDir=dist && electron-forge make --arch=universal --platform=darwin",
"build:web": "rm -rf out/web && vite build",
"bump": "vv",
"dev": "electron-vite dev --outDir=dist",
"dev:debug": "export DEBUG=true && vite --debug",
"dev:web": "vite",
Expand Down Expand Up @@ -48,7 +49,6 @@
"@radix-ui/react-dialog": "1.1.1",
"@radix-ui/react-dropdown-menu": "2.1.1",
"@radix-ui/react-label": "2.1.0",
"@radix-ui/react-navigation-menu": "1.2.0",
"@radix-ui/react-popover": "1.1.1",
"@radix-ui/react-radio-group": "1.2.0",
"@radix-ui/react-scroll-area": "1.1.0",
Expand All @@ -60,22 +60,22 @@
"@radix-ui/react-toast": "1.2.1",
"@radix-ui/react-tooltip": "1.1.2",
"@sentry/electron": "5.3.0",
"@sentry/react": "8.25.0",
"@sentry/vite-plugin": "2.22.1",
"@shikijs/transformers": "1.12.1",
"@sentry/react": "8.26.0",
"@sentry/vite-plugin": "2.22.2",
"@shikijs/transformers": "1.14.1",
"@t3-oss/env-core": "^0.10.1",
"@tanstack/query-sync-storage-persister": "5.51.21",
"@tanstack/react-query": "5.51.23",
"@tanstack/react-query-devtools": "5.51.23",
"@tanstack/react-query-persist-client": "5.51.23",
"@tanstack/query-sync-storage-persister": "5.52.0",
"@tanstack/react-query": "5.52.0",
"@tanstack/react-query-devtools": "5.52.0",
"@tanstack/react-query-persist-client": "5.52.0",
"@use-gesture/react": "10.3.1",
"@yornaath/batshit": "0.10.1",
"builder-util-runtime": "9.2.5-alpha.3",
"class-variance-authority": "0.7.0",
"click-to-react-component": "1.1.0",
"clsx": "2.1.1",
"cmdk": "1.0.0",
"dayjs": "1.11.12",
"dayjs": "1.11.13",
"dexie": "4.0.8",
"dnum": "^2.13.1",
"dotenv": "16.4.5",
Expand All @@ -98,17 +98,17 @@
"nanoid": "5.0.7",
"ofetch": "1.3.4",
"path-to-regexp": "7.1.0",
"posthog-js": "1.155.2",
"posthog-node": "4.0.1",
"posthog-js": "1.157.2",
"posthog-node": "4.1.1",
"re-resizable": "6.9.17",
"react-error-boundary": "4.0.13",
"react-fast-marquee": "1.6.5",
"react-hook-form": "7.52.2",
"react-hotkeys-hook": "4.5.0",
"react-intersection-observer": "9.13.0",
"react-resizable-layout": "0.7.2",
"react-router-dom": "6.26.0",
"react-virtuoso": "4.10.0",
"react-router-dom": "6.26.1",
"react-virtuoso": "4.10.1",
"rehype-infer-description-meta": "2.0.0",
"rehype-parse": "9.0.0",
"rehype-sanitize": "6.0.0",
Expand All @@ -119,18 +119,18 @@
"remark-parse": "11.0.0",
"remark-rehype": "11.1.0",
"semver": "7.6.3",
"shiki": "1.12.1",
"shiki": "1.14.1",
"sonner": "^1.5.0",
"swiper": "11.1.9",
"swiper": "11.1.10",
"tailwind-merge": "2.5.2",
"tldts": "6.1.39",
"tldts": "6.1.40",
"unified": "11.0.5",
"use-context-selector": "2.0.0",
"usehooks-ts": "3.1.0",
"vfile": "6.0.2",
"vscode-languagedetection": "npm:@vscode/vscode-languagedetection@^1.0.22",
"zod": "3.23.8",
"zustand": "4.5.4"
"zustand": "4.5.5"
},
"devDependencies": {
"@egoist/tailwindcss-icons": "1.8.1",
Expand All @@ -141,27 +141,28 @@
"@electron-forge/plugin-fuses": "7.4.0",
"@electron-forge/publisher-github": "7.4.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@hono/node-server": "1.12.0",
"@hono/node-server": "1.12.1",
"@iconify-json/mingcute": "1.1.19",
"@pengx17/electron-forge-maker-appimage": "1.2.1",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/typography": "0.5.14",
"@types/lodash-es": "4.17.12",
"@types/node": "^20.14.15",
"@types/react": "^18.3.3",
"@types/node": "^20.16.1",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@vercel/ncc": "0.38.1",
"@vitejs/plugin-react": "^4.3.1",
"drizzle-orm": "0.32.2",
"electron": "^30.1.2",
"electron": "^30.4.0",
"electron-devtools-installer": "3.2.0",
"electron-packager-languages": "0.5.0",
"electron-vite": "^2.3.0",
"eslint": "^9.9.0",
"eslint-config-hyoban": "^3.1.2",
"eslint-config-hyoban": "^3.1.3",
"fake-indexeddb": "6.0.0",
"hono": "4.4.7",
"hono": "4.5.7",
"lint-staged": "15.2.9",
"nbump": "2.0.4",
"postcss": "8.4.41",
"postcss-js": "4.0.1",
"react": "^18.3.1",
Expand All @@ -170,21 +171,21 @@
"rollup-plugin-visualizer": "5.12.0",
"shx": "^0.3.4",
"simple-git-hooks": "2.11.1",
"tailwindcss": "3.4.9",
"tailwindcss": "3.4.10",
"tailwindcss-animate": "1.0.7",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vite-plugin-mkcert": "1.17.5",
"vite": "^5.4.2",
"vite-plugin-mkcert": "1.17.6",
"vite-tsconfig-paths": "4.3.2",
"vitest": "2.0.5"
},
"pnpm": {
"patchedDependencies": {
"sonner@1.5.0": "patches/sonner@1.5.0.patch",
"hono@4.4.7": "patches/hono@4.4.7.patch",
"immer@10.1.1": "patches/immer@10.1.1.patch",
"@mozilla/readability@0.5.0": "patches/@mozilla__readability@0.5.0.patch",
"re-resizable@6.9.17": "patches/re-resizable@6.9.17.patch"
"re-resizable@6.9.17": "patches/re-resizable@6.9.17.patch",
"hono": "patches/hono.patch"
}
},
"simple-git-hooks": {
Expand All @@ -193,5 +194,19 @@
"lint-staged": {
"*": "eslint --fix"
},
"bump": {
"before": [
"git pull --rebase"
],
"after": [
"gh pr create --title 'chore: Release v${NEW_VERSION}' --body 'v${NEW_VERSION}' --base main --head dev"
],
"commit_message": "chore(release): release v${NEW_VERSION}",
"tag": false,
"changelog": true,
"allowed_branches": [
"dev"
]
},
"productName": "Follow"
}
6 changes: 3 additions & 3 deletions patches/hono@4.4.7.patch → patches/hono.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/dist/types/client/types.d.ts b/dist/types/client/types.d.ts
index 14af56d34248f101aecdebdd2e56278eac4b0c0d..458962012529b4374d6109112db791d918a6a313 100644
index ef314c9f6bc8b1ffd8ee0252c3822d14efd81a6d..bb92a4758ff7bb0562d24555ee7ec6f65ec46b20 100644
--- a/dist/types/client/types.d.ts
+++ b/dist/types/client/types.d.ts
@@ -41,7 +41,7 @@ type ClientResponseOfEndpoint<T extends Endpoint = Endpoint> = T extends {
@@ -42,7 +42,7 @@ type ClientResponseOfEndpoint<T extends Endpoint = Endpoint> = T extends {
output: infer O;
outputFormat: infer F;
status: infer S;
-} ? ClientResponse<O, S extends number ? S : never, F extends ResponseFormat ? F : never> : never;
+ } ? O : never;
+} ? O : never;
export interface ClientResponse<T, U extends number = StatusCode, F extends ResponseFormat = ResponseFormat> extends globalThis.Response {
readonly body: ReadableStream | null;
readonly bodyUsed: boolean;
Loading

0 comments on commit 7bf6aae

Please sign in to comment.