feat(@scripts): ✨ add npm publish workflow
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
9888fb1a31
commit
b969b14e11
3 changed files with 39 additions and 1 deletions
21
.gitea/workflows/npm-publish.yml
Normal file
21
.gitea/workflows/npm-publish.yml
Normal 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 }}
|
||||
|
|
@ -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
16
package.json
Normal 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/"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue