Merge pull request 'chore: add workflow to push package to registry' (#24) from chore/add-publish-action into main
Some checks failed
Publish npm package / publish (push) Failing after 7m57s

Reviewed-on: #24
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
This commit was merged in pull request #24.
This commit is contained in:
2026-03-24 12:08:31 +00:00
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", "license": "MIT",
"publishConfig": {
"registry": "https://git.blassanto.me/api/packages/blas/npm/"
},
"dependencies": { "dependencies": {
"chalk": "^4.1.2", "chalk": "^4.1.2",
"commander": "^11.1.0", "commander": "^11.1.0",