Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v6

Expand All @@ -37,6 +38,7 @@ jobs:
- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_USERCONFIG: ./client/.npmrc
run: bunx semantic-release

- name: Deploy
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ node_modules/
.dev.vars
.env
about.json
openapi-ts-error-*.log
dist/
build/
out/
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
drizzle/
bun.lock
node_modules/
*.md
*.md
dist/
build/
out/
92 changes: 55 additions & 37 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,42 +1,60 @@
{
"branches": [
"main",
{
"name": "dev",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer", {
"releaseRules": [
{ "type": "build", "scope": "Needs bump", "release": "patch" }
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
"branches": [
"main",
{
"name": "dev",
"prerelease": true
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"type": "build",
"scope": "Needs bump",
"release": "patch"
}
]
}
],
"message": "chore: Release v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@kilianpaquier/semantic-release-backmerge",
{
"targets": [{ "from": "main", "to": "dev" }]
}
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "client",
"npmPublish": true
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"client/package.json"
],
"message": "chore: Release v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@kilianpaquier/semantic-release-backmerge",
{
"targets": [
{
"from": "main",
"to": "dev"
}
]
}
]
]
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts → api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { swaggerUI } from '@hono/swagger-ui';
import type { Env } from './types';
import { cacheControl, CacheDuration } from './cache';
import { getConfig } from './config';
import packageJson from '../package.json';
import packageJson from 'package.json';
import patchesApp from './routes/patches';
import managerApp from './routes/manager';
import announcementsApp from './routes/announcements';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 6 additions & 10 deletions src/schemas/contributors.ts → api/src/schemas/contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ export const ContributorSchema = z.object({
export const ContributableSchema = z
.object({
name: z.string().openapi({ example: 'ReVanced Patches' }),
url: z
.url()
.openapi({
example: 'https://github.com/revanced/revanced-patches'
}),
url: z.url().openapi({
example: 'https://github.com/revanced/revanced-patches'
}),
contributors: z.array(ContributorSchema)
})
.openapi('Contributable');
Expand All @@ -33,11 +31,9 @@ export const GpgKeySchema = z
export const TeamMemberSchema = z
.object({
name: z.string().openapi({ example: 'oSumAtrIX' }),
avatar_url: z
.url()
.openapi({
example: 'https://avatars.githubusercontent.com/u/...'
}),
avatar_url: z.url().openapi({
example: 'https://avatars.githubusercontent.com/u/...'
}),
url: z.url().openapi({ example: 'https://github.com/oSumAtrIX' }),
bio: z.string().nullable().openapi({ example: 'Some bio text' }),
gpg_key: GpgKeySchema
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading