Update CI workflow and package configuration for Gitea npm registry
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "romulus-js",
|
||||
"name": "romulus",
|
||||
"version": "1.0.0",
|
||||
"description": "An implementation of the Romulus-M cryptography specification.",
|
||||
"main": "dist/index.js",
|
||||
@@ -13,7 +13,10 @@
|
||||
},
|
||||
"repository": {
|
||||
"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",
|
||||
"license": "ISC",
|
||||
|
||||
Reference in New Issue
Block a user