Skip to content

feat: add npm distribution packaging (#28) - #29

Merged
getappz merged 3 commits into
masterfrom
worktree-npm-packaging
Jul 6, 2026
Merged

feat: add npm distribution packaging (#28)#29
getappz merged 3 commits into
masterfrom
worktree-npm-packaging

Conversation

@getappz

@getappz getappz commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Uses mise multi-package pattern: platform sub-packages with prebuilt binary, main wrapper with preinstall hook. Script downloads release artifacts, repackages, publishes to npm. Closes #28 (partially).

getappz added 3 commits July 6, 2026 17:51
Add aur/agentflare/{PKGBUILD,.SRCINFO}, a source-build package mirroring
lean-ctx's AUR flow. release.yml now creates a source tarball
(agentflare-<version>-source.tar.gz) via git archive so the AUR build has
something to fetch and compile from on every future tag.
Scopes issue #22 to Phase 0 (registry consolidation onto the existing
Agent enum) + Phase 1 (installed-only agents list/doctor, version
detection only). Auth/config detection is deferred to #23.
Uses mise's multi-package pattern: platform-specific sub-packages
(@getappz/agentflare-linux-x64, etc.) containing the prebuilt binary, and a
main 'agentflare' wrapper package that detects the current platform and
installs the correct sub-package via a preinstall hook.

- scripts/release-npm.sh: downloads release artifacts, creates npm packages
- .github/workflows/npm-publish.yml: triggers on release published, runs the script
- installArchSpecificPackage.js: embedded in release script, handles platform detection

Requires setup before use:
1. Create @getappz npm org and add NPM_TOKEN secret to repo
2. Publish first version via workflow_dispatch with dry_run=false
@getappz
getappz merged commit 29dff11 into master Jul 6, 2026
7 checks passed
@getappz
getappz deleted the worktree-npm-packaging branch July 6, 2026 16:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add package manager distribution channels (npm, winget, apt, etc.)

1 participant