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: on:
push: push:
branches: [master] branches: [master]
tags: ["v*"]
pull_request: pull_request:
branches: [master] branches: [master]
@@ -26,3 +27,27 @@ jobs:
- name: Build project - name: Build project
run: npm run build 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

View File

@@ -1,5 +1,5 @@
{ {
"name": "romulus-js", "name": "romulus",
"version": "1.0.0", "version": "1.0.0",
"description": "An implementation of the Romulus-M cryptography specification.", "description": "An implementation of the Romulus-M cryptography specification.",
"main": "dist/index.js", "main": "dist/index.js",
@@ -13,7 +13,10 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.jacknet.io/TerribleCodeClub/romulus-js" "url": "https://git.3t.network/3t.network/romulus-js"
},
"publishConfig": {
"registry": "https://git.3t.network/api/packages/3t.network/npm/"
}, },
"author": "Butlersaurus", "author": "Butlersaurus",
"license": "ISC", "license": "ISC",