diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..eaa0952 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..aff9535 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@debros:registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/package.json b/package.json index 382fa59..0053487 100644 --- a/package.json +++ b/package.json @@ -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/" } }