Update CI workflow and package configuration for Gitea npm registry
Some checks failed
CI / build (push) Successful in 19s
CI / publish (push) Failing after 7s

This commit is contained in:
2025-09-03 20:44:51 +01:00
parent a91f1ee417
commit 98d789bc2d
2 changed files with 30 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ name: CI
on:
push:
branches: [master]
tags: ["v*"]
pull_request:
branches: [master]
@@ -26,3 +27,27 @@ jobs:
- 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: Setup Node.js
run: |
npm config set registry https://git.3t.network/api/packages/3t.network/npm/
npm config set //git.3t.network/api/packages/3t.network/npm/:_authToken ${{ secrets.PUBLISH_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Publish to Gitea npm registry
run: npm publish