diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..78b6212 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -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 }} diff --git a/package.json b/package.json index f33bd27..46bc672 100644 --- a/package.json +++ b/package.json @@ -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" }