refactor: rename package to @3t/bennc and update repository URL
Some checks failed
CI / build (push) Failing after 10s
CI / publish (push) Has been skipped

- Changed package name from "bennc-js" to "@3t/bennc"
- Updated repository URL to point to the new location
- Added publishConfig for npm registry
- Updated devDependencies to newer versions
This commit is contained in:
2025-09-06 19:03:04 +01:00
parent 61082d32e7
commit 15fa2b1608
4 changed files with 3467 additions and 7314 deletions

57
.gitea/workflows/ci..yml Normal file
View File

@@ -0,0 +1,57 @@
name: CI
on:
push:
branches: [master]
tags: ["v*"]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
container: node:lts-alpine
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm run test
- name: Build project
run: npm run build
publish:
needs: build
runs-on: ubuntu-latest
container: node:lts-alpine
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Set version from git tag
run: |
VERSION=${GITHUB_REF#refs/tags/v}
npm version $VERSION --no-git-tag-version
- name: Setup npm for publishing
run: |
npm config set //git.3t.network/api/packages/3t.network/npm/:_authToken ${{ secrets.PUBLISH_TOKEN }}
- name: Publish to Gitea npm registry
run: npm publish