feat:修改配置

This commit is contained in:
aisouler
2024-02-01 20:08:59 +08:00
parent 6ad84c70a2
commit 8ff1e8c417
8 changed files with 22 additions and 27 deletions

View File

@@ -1,6 +1,9 @@
name: build_release
on: workflow_dispatch
on:
workflow_dispatch:
schedule:
- cron: 0 16 * * *
jobs:
build_release:
@@ -56,13 +59,3 @@ jobs:
tag_name: v${{ steps.version.outputs.version }}
release_name: Release ${{ steps.version.outputs.version }}
body_path: ./CHANGELOG.md
- name: Publish package
if: ${{ steps.commit.outcome == 'success' }}
run: |
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
pnpm publish
- name: sync npmmirror
if: ${{ steps.commit.outcome == 'success' }}
run: curl -X PUT 'https://registry-direct.npmmirror.com/@gkd-kit/subscription/sync'

View File

@@ -7,7 +7,7 @@ on:
jobs:
check:
if: github.repository == 'gkd-kit/subscription'
if: github.repository == 'AIsouler/subscription'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@@ -1,10 +1,8 @@
# @gkd-kit/subscription
重要说明: 本人审核精力有限,所有规则均暂时停止维护, 你可以自行编写规则, 导入本地订阅使用
# @AIsouler/subscription
---
`默认规则` 仅启用 `开屏广告` 一类规则, 其它所有规则均需用户手动打开
AIsouler维护的GKD规则, 仅启用 `开屏广告` 一类规则, 其它所有规则均需用户手动打开
在 GKD 内添加以下链接即可使用此规则
@@ -23,3 +21,7 @@ https://fastly.jsdelivr.net/npm/@gkd-kit/subscription
## 感谢以下开发者的贡献
![img](https://contrib.rocks/image?repo=gkd-kit/subscription&_v=185)
## 感谢以下项目
[gkd-kit/subscription](https://github.com/gkd-kit/subscription)

4
dist/AIsouler_gkd.version.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"id": 666,
"version": 186
}

View File

@@ -1,4 +0,0 @@
{
"id": 0,
"version": 185
}

View File

@@ -1,7 +1,7 @@
{
"name": "@gkd-kit/subscription",
"type": "module",
"version": "1.185.0",
"version": "1.186.0",
"main": "./dist/gkd.json5",
"unpkg": "./dist/gkd.json5",
"jsdelivr": "./dist/gkd.json5",

View File

@@ -6,9 +6,9 @@ import type { RawSubscription } from './types';
const subsConfig: RawSubscription = {
id: 0,
version: 0,
name: '默认订阅',
author: 'lisonge',
supportUri: 'https://github.com/gkd-kit/subscription',
name: 'AIsouler的GKD订阅',
author: 'AIsouler',
supportUri: 'https://github.com/AIsouler/subscription',
updateUrl:
'https://registry.npmmirror.com/@gkd-kit/subscription/latest/files',
checkUpdateUrl:

View File

@@ -58,8 +58,8 @@ const pkg: typeof PkgT = JSON.parse(
);
const pkgKeys = Object.keys(pkg);
const gkdFp = process.cwd() + '/dist/gkd.json5';
const versionFp = process.cwd() + '/dist/gkd.version.json';
const gkdFp = process.cwd() + '/dist/AIsouler_gkd.json5';
const versionFp = process.cwd() + '/dist/AIsouler_gkd.version.json';
const oldConfig: RawSubscription = JSON5.parse(
await fs.readFile(gkdFp, 'utf-8').catch(() => '{}'),
);