chore: add workflow to push package to registry

This commit is contained in:
2026-03-24 13:05:23 +01:00
parent b5d97215a0
commit dafcc3e0c3
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
name: Publish npm package
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://git.blassanto.me/api/packages/blas/npm/'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Publish to Gitea
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.TOKEN }}

View File

@@ -32,6 +32,9 @@
}
],
"license": "MIT",
"publishConfig": {
"registry": "https://git.blassanto.me/api/packages/blas/npm/"
},
"dependencies": {
"chalk": "^4.1.2",
"commander": "^11.1.0",