Compare commits
6 Commits
c11cef3191
...
1.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
5999235e41
|
|||
|
b341945a1a
|
|||
|
f677b995e2
|
|||
|
2c58f14b8c
|
|||
|
db3cbf16e6
|
|||
|
d33fbc615e
|
@@ -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 }}
|
||||||
@@ -7,11 +7,11 @@ Reference: [Fetch spec — port blocking](https://fetch.spec.whatwg.org/#port-bl
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install @onixbyte/vite-plugin-port-checker -D
|
npm install vite-plugin-port-checker -D
|
||||||
# or
|
# or
|
||||||
pnpm add @onixbyte/vite-plugin-port-checker -D
|
pnpm add vite-plugin-port-checker -D
|
||||||
# or
|
# or
|
||||||
yarn add @onixbyte/vite-plugin-port-checker -D
|
yarn add vite-plugin-port-checker -D
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
+6
-6
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "vite-plugin-port-checker",
|
"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.",
|
"description": "A Vite plugin that warns if the dev server is running on a browser-restricted port.",
|
||||||
"author": {
|
"author": {
|
||||||
"email": "opensource@onixbyte.com",
|
"email": "opensource@onixbyte.com",
|
||||||
"name": "OnixByte Open Source",
|
"name": "OnixByte Open Source Team",
|
||||||
"url": "https://github.com/onixbyte"
|
"url": "https://onixbyte.com"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -31,10 +31,10 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"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": {
|
"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