feat(@scripts): add npm publish workflow

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-04-26 16:13:30 -07:00
parent 9888fb1a31
commit b969b14e11
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,21 @@
name: npm-publish
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: apricot
steps:
- uses: actions/checkout@v4
- name: Publish to forge.black.local npm registry
run: |
chmod +x bin/*
printf '//forge.black.local/api/packages/lilith/npm/:_authToken=%s\n' "$NPM_TOKEN" > .npmrc
npm publish --registry http://forge.black.local/api/packages/lilith/npm/
rm .npmrc
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -66,7 +66,8 @@ list_tmux_on() {
# <host>\tdisk\t<cwd>\t<sessions=N, last used <relative-time>>
list_disk_on() {
_host=$1
_helper_dir=$(dirname "$0")
_self=$0; while [ -L "$_self" ]; do _self=$(readlink "$_self"); done
_helper_dir=$(dirname "$_self")
if is_local "$_host"; then
_raw=$("$_helper_dir/_claude-projects" 2>/dev/null || true)
else

16
package.json Normal file
View file

@ -0,0 +1,16 @@
{
"name": "@lilith/session-tools",
"version": "0.1.0",
"description": "Durable Claude Code session management (rclaude, tssh, remote-run)",
"bin": {
"rclaude": "bin/rclaude",
"remote-run": "bin/remote-run",
"tssh": "bin/tssh"
},
"files": [
"bin"
],
"publishConfig": {
"registry": "http://forge.black.local/api/packages/lilith/npm/"
}
}