fix: implement working NPM distribution with GitHub release workflow#25
Merged
Tristan578 merged 3 commits intomainfrom Mar 15, 2026
Merged
fix: implement working NPM distribution with GitHub release workflow#25Tristan578 merged 3 commits intomainfrom
Tristan578 merged 3 commits intomainfrom
Conversation
…leases Replace placeholder install script with a working implementation that detects platform/arch, downloads the correct binary archive from GitHub Releases, extracts it, and places it in ./bin/. Uses only Node.js built-in modules. Falls back gracefully when no release exists yet.
…pport Rename binary from taskboard to player2-kanban, add windows-amd64 build target, fix embedded frontend path to cmd/kanban, package Windows builds as .zip and Unix builds as .tar.gz, and remove Homebrew tap step.
Add repository URL for npm registry linking and files whitelist to ensure only bin/ and scripts/install.js are included in the published package.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/install.jsto download pre-built binaries from GitHub Releases, detecting platform/arch automatically and using only Node.js built-in modules.github/workflows/release.ymlto buildplayer2-kanbanbinaries for linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, and windows-amd64, packaging as.tar.gz(Unix) or.zip(Windows)repositoryandfilesfields topackage.jsonfor proper npm publishingTest plan
v*tag and verify the release workflow builds all 5 platform targetsplayer2-kanban-{os}-{arch}.tar.gz(or.zipfor Windows)npm installfrom a published package and confirm the install script downloads and extracts the correct binarynpm installwhen no release exists and confirm a helpful build-from-source message is shown