chore: add Gitea Actions CI and switch repo URLs to self-hosted Gitea

Add .gitea/workflows/publish.yml to trigger npm publish on version tags.
Update repository, bugs, and homepage URLs to git.onixbyte.com.
This commit is contained in:
2026-06-08 09:25:01 +08:00
parent c11cef3191
commit d33fbc615e
2 changed files with 39 additions and 5 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Publish to npm
on:
push:
tags:
- "v*.*.*"
- "*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Setup pnpm
run: corepack enable && corepack prepare pnpm@latest --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Publish to npm
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}