Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
# - run: npm ci
# - run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
# - run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 2 additions & 1 deletion lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ function startDaemon(argv) {
var socket = null;
var master = null;
var server = null;


fs.writeFile(pidFile, process.pid, function(){
fs.writeFile(pidFile, process.pid.toString(), function(){
createLogsAndIpcServer(function(err) {
if (err) {
processSend({event: 'Error', value: err.message});
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "naught",
"version": "1.6.0",
"name": "@nuso.io/naught",
"version": "1.6.1",
"description": "zero downtime deployment for your node.js server",
"keywords": [
"deploy",
Expand All @@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/andrewrk/naught"
"url": "https://github.com/nuso/naught"
},
"author": "Andrew Kelley",
"license": "MIT",
Expand All @@ -35,7 +35,7 @@
"pend": "~1.2.0"
},
"bugs": {
"url": "https://github.com/andrewrk/naught/issues"
"url": "https://github.com/nuso/naught/issues"
},
"directories": {
"test": "test"
Expand Down