summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2026-11-20 10:52:48 +0100
committermayx <mayx@outlook.com>2026-11-20 10:52:48 +0100
commit0938411b781062312f3218c016901d171d122af3 (patch)
treeec8c300bb6bec933d11db007b64472c86a723b05
parent1eecca6d6a5348b82f020ea480d78f17b123204f (diff)
Update 5 filesHEADmaster
- /_data/other_repo_list.csv - /_data/proxylist.yml - /_data/links.csv - /package.json - /.github/workflows/npm-publish.yml
-rw-r--r--.github/workflows/npm-publish.yml58
-rw-r--r--_data/links.csv1
-rw-r--r--_data/other_repo_list.csv45
-rw-r--r--_data/proxylist.yml1
-rw-r--r--package.json16
5 files changed, 76 insertions, 45 deletions
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
new file mode 100644
index 0000000..5890544
--- /dev/null
+++ b/.github/workflows/npm-publish.yml
@@ -0,0 +1,58 @@
+name: Mirror to npm
+
+on:
+ push:
+ branches: [master]
+
+# 只读仓库,不再回写 commit 和 tag
+# id-token: write 用于 Trusted Publishing(OIDC)换取短期发布凭据
+permissions:
+ contents: read
+ id-token: write
+
+# 同一时刻只允许一个发布任务
+concurrency:
+ group: npm-mirror
+ cancel-in-progress: false
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ registry-url: 'https://registry.npmjs.org'
+
+ # Trusted Publishing 要求 npm 11.5.1 以上,Node 22 自带的是 10.x
+ # 锁 11.x 而不是 latest,避免 npm 12 的 staged publishing 行为干扰
+ - name: Upgrade npm
+ run: npm install -g npm@11
+
+ # 版本号直接用 commit hash,仓库里的 package.json 不动
+ # 前缀 g 是为了防止 hash 恰好全是数字时被 semver 当成数字标识符
+ - name: Set version from commit hash
+ run: |
+ VERSION="0.0.0-g${GITHUB_SHA:0:7}"
+ npm pkg set version="$VERSION"
+ echo "VERSION=$VERSION" >> "$GITHUB_ENV"
+ echo "本次发布版本: $VERSION"
+
+ # 同一个 commit 重跑时跳过,避免 409 版本已存在
+ - name: Check if version already published
+ id: check
+ run: |
+ if npm view "mayx-blog@${VERSION}" version >/dev/null 2>&1; then
+ echo "exists=true" >> "$GITHUB_OUTPUT"
+ echo "版本 ${VERSION} 已存在,跳过发布"
+ else
+ echo "exists=false" >> "$GITHUB_OUTPUT"
+ fi
+
+ # 带 - 的版本是 prerelease,必须显式 --tag latest,
+ # 否则 npm i mayx-blog 拿不到这个版本
+ - name: Publish to npm
+ if: steps.check.outputs.exists == 'false'
+ run: npm publish --tag latest
diff --git a/_data/links.csv b/_data/links.csv
index 915cf59..0cc5a2f 100644
--- a/_data/links.csv
+++ b/_data/links.csv
@@ -27,3 +27,4 @@ EXYONE@BLOG:~$,https://exyon.ee,https://exyon.ee/feed.xml,一隅藏天地,流æ
小景,https://jingyuan-zheng.github.io/zh/,https://jingyuan-zheng.github.io/zh/index.xml,随心分享有趣的技术、开源项目与生活记录。
热汤茶馆,https://blog.hotsouprealm.top/,https://blog.hotsouprealm.top/atom.xml,茶凉了可以续,话断了可以接,这里是hahahotsoup的茶馆。
FGHRSH 日记簿,https://www.fghrsh.net/,https://www.fghrsh.net/feed.php,把喜欢的东西都记下来···
+InfBlog,https://infinitescope.site/,https://infinitescope.site/feed.xml,去编织意义,去留下痕迹。
diff --git a/_data/other_repo_list.csv b/_data/other_repo_list.csv
index 33f7d18..45b9a3c 100644
--- a/_data/other_repo_list.csv
+++ b/_data/other_repo_list.csv
@@ -19,28 +19,18 @@ https://sij.ai/mayx/blog
https://git.projectnightcrawler.dev/mayx/blog
https://git.pixie.town/mayx/blog
https://git.minetest.land/Mayx/blog
-http://1.6.141.109:3000/mayx/blog
https://mygit.iexercice.com/mayx/blog
-http://162.215.134.149:4000/mayx/blog
-http://185.208.225.190:3000/mayx/blog
https://git.Apture.io/mayx/blog
http://219.157.255.213:25311/mayx/blog
-http://116.236.50.103:8789/mayx/blog
https://repo.gusdya.net/mayx/blog
http://gitea.yunshanghub.com:8081/mayx/blog
-http://152.69.204.151:3000/mayx/blog
http://187.216.152.151:9999/mayx/blog
-http://116.63.173.179:8001/mayx/blog
https://git.furcom.org/mayx/blog
https://git.karma-riuk.com/mayx/blog
https://git.gupaoedu.cn/mayx/blog
https://git.7milch.com/mayx/blog
-https://gitea.micro-stack.org/mayx/blog
http://106.54.211.95:3000/mayx/blog
http://172.172.102.93:3000/mayx/blog
-http://120.211.66.170:8418/mayx/blog
-http://209.127.59.74:3000/mayx/blog
-http://121.41.2.71:3000/mayx/blog
http://119.45.49.212:3000/mayx/blog
https://code.antopie.org/mayx/blog
https://git.serenetia.com/mayx/blog
@@ -54,20 +44,12 @@ https://git.cavemanon.xyz/mayx/blog
http://svn.rivastudio.cn/mayx/blog
http://118.178.172.49:3000/mayx/blog
http://8.130.135.159:3000/mayx/blog
-https://git.dshkabatur.ru/mayx/blog
-http://194.5.152.156:3000/mayx/blog
https://git.arkon.solutions/mayx/blog
-http://221.203.14.217:3000/mayx/blog
https://git.f4e.lol/mayx/blog
-http://72.61.229.93:4000/mayx/blog
http://39.101.74.135:5000/mayx/blog_cn
http://123.57.130.140:3000/mayx/blog_cn
-http://118.24.46.223:3000/mayx/blog_cn
http://s3.v100.vip:31057/mayx/blog_cn
-http://45.55.138.82:3000/mayx/blog_cn
http://118.24.129.148:3000/mayx/blog_cn
-http://120.48.141.82:3000/mayx/blog_cn
-http://175.27.229.211:3000/mayx/blog_cn
http://39.105.67.143:3000/mayx/blog_cn
http://82.156.89.21:3000/mayx/blog_cn
http://xujiesoft.vicp.net:3000/mayx/blog_cn
@@ -76,18 +58,12 @@ http://gyc.myds.me:4000/mayx/blog
https://git.graveyard.sh/mayx/blog
https://gitea.jnyuxia.com/mayx/blog
https://gitlab.iplusus.com/mayx/blog
-https://git.miasma-os.com/mayx/blog
-http://47.98.148.146:1026/mayx/blog_cn
-http://39.100.183.95:88/mayx/blog_cn
http://81.70.102.154/mayx/blog_cn
-http://36.133.248.69:3088/mayx/blog_cn
http://183.204.60.122:10081/mayx/blog_cn
http://47.106.222.181:20511/mayx/blog_cn
http://118.24.161.24:3000/mayx/blog_cn
-http://36.138.125.206:3000/mayx/blog_cn
https://git.crystalyx.net/mayx/blog
https://barhoum-lab.fr/mayx/blog
-http://gitea.snailtrack.cn/mayx/blog_cn
http://www.bkandssp.cn:30/mayx/blog
http://gitea.ydxtool.com/mayx/blog
https://gitea.malxte.de/mayx/blog
@@ -95,10 +71,8 @@ https://git.edenit.co.kr/mayx/blog
https://git.catgirlsneed.homes/mayx/blog
http://210.75.240.13:3000/mayx/blog_cn
http://git.hbg99.com:8080/mayx/blog_cn
-https://git.eplg.services/mayx/blog
https://git.xleed.com/mayx/blog
https://git.supernets.org/mayx/blog
-https://git.libregaming.org/mayx/blog
https://git.kaki87.net/mayx/blog
https://forgejo.vanten-s.com/mayx/blog
http://124.71.169.183:3000/mayx/blog
@@ -109,48 +83,35 @@ https://datacortex.pl/mayx/blog
https://gitea.keymantek.com:777/mayx/blog
https://git.tirtapakuan.co.id/mayx/blog
http://tian-you.top:7020/mayx/blog
-http://34.17.182.140/mayx-gogs/blog
https://mcgit.place/mayx/blog
https://git.chiasson.cloud/mayx/blog
https://repo.qruize.com/mayx/blog
https://git.xneon.org/mayx/blog
-https://lab.dutt.ch/mayx/blog
https://gitea.dabit.synology.me/mayx/blog
https://git.joinplu.me/mayx/blog
http://188.66.0.25:3000/mayx/blog
https://gitea.deliverables.io/mayx/blog
http://23.182.16.150:3000/mayx/blog
https://git.ritonquilol.fr/mayx/blog
-https://bis127.vse.cz/mayx/blog
https://git.jhammah.com/mayx/blog
https://gitea.kolesarhome.com/mayx/blog
https://git.wikeo.ovh/mayx/blog
https://devcraft-dot.tech/mayx/blog
-https://a-t-g.ru/mayx/blog
http://wangbeibei.xyz:6002/mayx/blog
http://8.141.82.163:20000/mayx/blog_cn
http://yidaima.cn:6008/mayx/blog_cn
-http://8.148.31.14:3000/mayx/blog_cn
-http://58.17.14.95:8001/mayx/blog_cn
http://39.99.175.172:8000/mayx/blog_cn
-http://175.178.193.35:3000/mayx/blog_cn
http://gitea.jb1000.com:88/mayx/blog_cn
-http://www.22ai.vip/mayx/blog_cn
http://219.151.177.172:3000/mayx/blog_cn
-http://62.234.20.54:3000/mayx/blog_cn
http://jdunlap.com/mayx/blog
-https://git.silica.codes/mayx/blog
https://gitruhub.ru/mayx/blog
https://mjjtop.com/mayx/blog
https://forgejo.wanderingmonster.dev/mayx/blog
https://git.hemangvyas.com/mayx/blog
-https://gitav.ru/mayx/blog
https://git.aptcloud.ru/mayx/blog
https://git.kunstglass.de/mayx/blog
https://git.kry008.xyz/mayx/blog
http://36.213.200.127:23000/mayx/blog_cn
-https://gitea.yfandxt.asia/mayx/blog_cn
-http://81.69.57.215:3000/mayx/blog_cn
https://git.dglyoo.com/mayx/blog_cn
http://c8202.top:3000/mayx/blog_cn
http://nojava.fun/mayx/blog_cn
@@ -158,7 +119,6 @@ https://git.vycsucre.gob.ve/mayx/blog
https://git.uj-s.com/mayx/blog
https://git.83channel.net/mayx/blog
https://repo.paperless.rs/mayx/blog
-https://git.checkerwars.com/mayx/blog
https://git.broderlands.com/mayx/blog
https://gitea.schwegmann.tech/mayx/blog
https://gitea.kcm-nixi.cn:32443/mayx/blog
@@ -170,10 +130,7 @@ https://git.jibai.dev/mayx/blog
https://dev.rasadyar.com/mayx/blog
https://git.dew.vn/mayx/blog
https://git.recstar.club/mayx/blog
-https://forgejo.cgr-international.com/mayx/blog
-https://yang-gitea.umersoft.com/mayx/blog
https://synthesist.d4d.host/mayx/blog
-https://git.takits.me/mayx/blog
https://gitea.zazlab.freeddns.org/mayx/blog
https://gitweb.cn/mayx/blog
https://forge.harusato.com/mayx/blog
@@ -181,4 +138,4 @@ https://forgejo.siriusdevops.com/mayx/blog
https://git.tessdev.fr/mayx/blog
https://gitlab.navy.mi.th/mayx/blog
https://forgejo.quantum-forge.io/mayx/blog
-https://courses.languagereactor.com/mayx/blog
+http://www.anjpower.com:3000/mayx/blog
diff --git a/_data/proxylist.yml b/_data/proxylist.yml
index 2350659..64206b6 100644
--- a/_data/proxylist.yml
+++ b/_data/proxylist.yml
@@ -58,6 +58,7 @@ repos:
- https://sourceforge.net/projects/mayx/
- https://dev.azure.com/unmayx/_git/Mayx
- https://www.gitlink.org.cn/mayx/mayx.gitlink.net
+- https://www.npmjs.com/package/mayx-blog
static:
- https://mayx.nekoweb.org/
- https://mayx.neocities.org/
diff --git a/package.json b/package.json
index 4c63f64..95dff8c 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,21 @@
{
"name": "mayx-blog",
"version": "1.0.0",
+ "description": "Mayx's Home Page",
+ "homepage": "https://mabbs.github.io",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Mabbs/mabbs.github.io.git"
+ },
+ "bugs": {
+ "url": "https://github.com/Mabbs/mabbs.github.io/issues"
+ },
+ "author": "Mayx",
"scripts": {
"build": "bash deploy.sh"
+ },
+ "publishConfig": {
+ "access": "public",
+ "provenance": true
}
-} \ No newline at end of file
+}