Compare commits

..

6 Commits

Author SHA1 Message Date
siujamo 5999235e41 fix: switch to npm publish to avoid pnpm OIDC auth issues
Publish to npm / publish (push) Successful in 27s
2026-06-08 09:46:29 +08:00
siujamo b341945a1a fix: configure pnpm auth explicitly to avoid OIDC failure on Gitea
Publish to npm / publish (push) Failing after 26s
2026-06-08 09:41:38 +08:00
siujamo f677b995e2 chore: bump version to 1.0.2
Publish to npm / publish (push) Failing after 29s
2026-06-08 09:37:58 +08:00
siujamo 2c58f14b8c chore: bump Node.js version to 24 in CI workflow 2026-06-08 09:36:01 +08:00
siujamo db3cbf16e6 docs: remove scope from package name in install instructions
Publish to npm / publish (push) Failing after 19s
2026-06-08 09:25:17 +08:00
siujamo d33fbc615e 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.
2026-06-08 09:25:01 +08:00
3 changed files with 43 additions and 9 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: "24"
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: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+3 -3
View File
@@ -7,11 +7,11 @@ Reference: [Fetch spec — port blocking](https://fetch.spec.whatwg.org/#port-bl
## Install
```bash
npm install @onixbyte/vite-plugin-port-checker -D
npm install vite-plugin-port-checker -D
# or
pnpm add @onixbyte/vite-plugin-port-checker -D
pnpm add vite-plugin-port-checker -D
# or
yarn add @onixbyte/vite-plugin-port-checker -D
yarn add vite-plugin-port-checker -D
```
## Usage
+6 -6
View File
@@ -1,11 +1,11 @@
{
"name": "vite-plugin-port-checker",
"version": "1.0.1",
"version": "1.0.2",
"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"
}