added githhub actions for auto publishing

This commit is contained in:
12inchpenguin 2025-04-01 15:56:19 +03:00
parent 4857bd0c77
commit 33ddb18189
3 changed files with 29 additions and 4 deletions

27
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Publish Alpha Package to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "23"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm ci
- name: Publish to npm
run: npm publish --tag alpha --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

1
.npmrc Normal file
View File

@ -0,0 +1 @@
@debros:registry=https://registry.npmjs.org/

View File

@ -1,6 +1,6 @@
{
"name": "@debros/network",
"version": "0.0.11-alpha",
"version": "0.0.12-alpha",
"description": "Debros network core functionality for IPFS, libp2p and OrbitDB",
"type": "module",
"main": "dist/index.js",
@ -73,8 +73,5 @@
"types": [
"@constl/orbit-db-types"
]
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}