chore: align project config with torrentclaw org standards

This commit is contained in:
Deivid Soto 2026-02-12 15:44:09 +01:00
parent 2f58ac7bf8
commit 8bb8e5507e
9 changed files with 367 additions and 46 deletions

41
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true