Skip to content

Commit

Permalink
publish server on npmjs (#17)
Browse files Browse the repository at this point in the history
* publish server on npmjs

* change version to rigger publication
  • Loading branch information
ebrehault authored Feb 26, 2024
1 parent a90c554 commit 24b56ec
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish server

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Build
run: |-
cd server
npm install
npm run compile
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./server/package.json
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# NUCLIA Sync
# Nuclia Sync agent

The Nuclia Sync Agent is a small application that runs on your computer and keeps your files in sync with the Nuclia cloud. It is available for Windows, macOS, and Linux.

## Installation

To install the Nuclia Sync Agent, download the installer from its [repository](https://github.com/nuclia/sync-agent/releases) and run it.

It runs on port 8090.

## Configuration

In the Upload page of the Nuclia dashboard, you can enable the Nuclia Sync Agent and configure it to connect to your computer.
You must use `http://localhost:8090` as the server URL.

## Deloyment on a server

If you want to deploy the Nuclia Sync Agent on a server rather than on your computer, you can use the [Nuclia Sync Agent server](https://github.com/nuclia/sync-agent/tree/main/server/README.md).
12 changes: 12 additions & 0 deletions server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Nuclia Sync Agent server

The Nuclia Sync Agent server is NodeJS application that runs on your server and keeps your files in sync with the Nuclia cloud.

## Usage

To install and run the Nuclia Sync Agent server, run the following commands:

```bash
npm install -g nuclia-sync-agent-server
nuclia-sync-agent-server
```
5 changes: 4 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuclia/sync-agent",
"version": "0.0.1",
"version": "1.0.1",
"description": "This is a sync agent to synchronize user files from diferent sources to nuclia",
"main": "build/index.js",
"types": "build/types/index.d.ts",
Expand All @@ -11,6 +11,9 @@
"Nuclia"
],
"license": "MIT",
"bin": {
"nuclia-sync-agent": "build/start-file-system-server.js"
},
"scripts": {
"compile": "tsc",
"lint": "eslint .",
Expand Down

0 comments on commit 24b56ec

Please sign in to comment.