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:
@@ -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 }}
|
||||
+5
-5
@@ -4,8 +4,8 @@
|
||||
"description": "A Vite plugin that warns if the dev server is running on a browser-restricted port.",
|
||||
"author": {
|
||||
"email": "opensource@onixbyte.com",
|
||||
"name": "OnixByte Open Source",
|
||||
"url": "https://github.com/onixbyte"
|
||||
"name": "OnixByte Open Source Team",
|
||||
"url": "https://onixbyte.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -31,10 +31,10 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/onixbyte/vite-plugin-port-checker.git"
|
||||
"url": "git+https://git.onixbyte.com/onixbyte/vite-plugin-port-checker.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/onixbyte/vite-plugin-port-checker/issues"
|
||||
"url": "https://git.onixbyte.com/onixbyte/vite-plugin-port-checker/issues"
|
||||
},
|
||||
"homepage": "https://github.com/onixbyte/vite-plugin-port-checker#readme"
|
||||
"homepage": "https://git.onixbyte.com/onixbyte/vite-plugin-port-checker#readme"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user