Skip to content

Commit 6d0ecf9

Browse files
committed
feat: automate npm publish on tag push, bump to v0.3.1
Release workflow now builds Go binaries via GoReleaser and publishes the npm installer package in a single tag-triggered pipeline. Requires NPM_TOKEN secret in repo settings.
1 parent dd9c6bf commit 6d0ecf9

File tree

3 files changed

+38
-19
lines changed

3 files changed

+38
-19
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,22 @@ jobs:
2424
args: release --clean
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
npm-publish:
29+
needs: release
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
registry-url: 'https://registry.npmjs.org'
37+
- name: Update npm package version from tag
38+
run: |
39+
VERSION="${GITHUB_REF_NAME#v}"
40+
cd npm
41+
npm version "$VERSION" --no-git-tag-version --allow-same-version
42+
- name: Publish to npm
43+
run: cd npm && npm publish --access public
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stacklit",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Zero-config codebase context for AI agents. One command generates a ~250-token navigation map and auto-configures Claude Code, Cursor, and Aider.",
55
"bin": {
66
"stacklit": "bin/stacklit.js"

stacklit.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "https://stacklit.dev/schema/v1.json",
33
"version": "1",
4-
"generated_at": "2026-04-10T19:43:30Z",
4+
"generated_at": "2026-04-11T20:44:58Z",
55
"stacklit_version": "dev",
6-
"merkle_hash": "30be93d7f694cca2cd354dcaaa49aa84329732f577399f2f0fddaffcfab3b5ef",
6+
"merkle_hash": "dcc7d770eed645addb8cd8239c889f2b16333d4bae240bc662cabf562c7e505f",
77
"project": {
88
"name": "stacklit",
99
"root": ".",
@@ -14,7 +14,7 @@
1414
"languages": {
1515
"go": {
1616
"files": 59,
17-
"lines": 7862
17+
"lines": 7994
1818
},
1919
"java": {
2020
"files": 1,
@@ -47,7 +47,7 @@
4747
"cmd/stacklit/main.go"
4848
],
4949
"total_files": 70,
50-
"total_lines": 8068
50+
"total_lines": 8200
5151
},
5252
"modules": {
5353
"assets": {
@@ -251,7 +251,7 @@
251251
"purpose": "Dependency graph",
252252
"language": "go",
253253
"files": 2,
254-
"lines": 494,
254+
"lines": 626,
255255
"file_list": [
256256
"graph.go",
257257
"graph_test.go"
@@ -418,13 +418,13 @@
418418
"type Project"
419419
],
420420
"type_defs": {
421-
"Dependencies": "Edges [][]string, Entrypoints []string, MostDepended []string, Isolated []string",
422-
"GitInfo": "HotFiles []HotFile, Recent []string, Stable []string",
421+
"Architecture": "Pattern string, Summary string",
423422
"Hints": "AddFeature string, TestCmd string, EnvVars []string, DoNotTouch []string",
423+
"HotFile": "Path string, Commits90d int",
424424
"Index": "Schema string, Version string, GeneratedAt string, StacklitVersion string, MerkleHash string, Project Project, Tech Tech, Structure Structure, Modules map[string]ModuleInfo, Dependencies Dependenci...",
425-
"LangStats": "Files int, Lines int",
426425
"ModuleInfo": "Purpose string, Language string, Files int, Lines int, FileList []string, Exports []string, TypeDefs map[string]string, DependsOn []string, DependedBy []string, Activity string",
427426
"MultiIndex": "Schema string, Version string, Type string, GeneratedAt string, TotalFiles int, TotalLines int, TotalModules int, Repos []RepoSummary",
427+
"Project": "Name string, Root string, Type string, Workspaces []string",
428428
"RepoSummary": "Name string, Path string, PrimaryLanguage string, TotalFiles int, TotalLines int, Modules map[string]ModuleInfo, Frameworks []string, Entrypoints []string",
429429
"Structure": "Entrypoints []string, TotalFiles int, TotalLines int, KeyDirectories map[string]string",
430430
"Tech": "PrimaryLanguage string, Languages map[string]LangStats, Frameworks []string"
@@ -660,7 +660,7 @@
660660
"hot_files": [
661661
{
662662
"path": "stacklit.json",
663-
"commits_90d": 18
663+
"commits_90d": 19
664664
},
665665
{
666666
"path": "stacklit.mmd",
@@ -680,7 +680,7 @@
680680
},
681681
{
682682
"path": "internal/graph/graph.go",
683-
"commits_90d": 7
683+
"commits_90d": 9
684684
},
685685
{
686686
"path": "internal/schema/schema.go",
@@ -702,6 +702,10 @@
702702
"path": "internal/cli/init.go",
703703
"commits_90d": 5
704704
},
705+
{
706+
"path": "internal/graph/graph_test.go",
707+
"commits_90d": 5
708+
},
705709
{
706710
"path": "internal/renderer/mermaid_test.go",
707711
"commits_90d": 5
@@ -733,23 +737,19 @@
733737
{
734738
"path": "internal/cli/view.go",
735739
"commits_90d": 3
736-
},
737-
{
738-
"path": "internal/graph/graph_test.go",
739-
"commits_90d": 3
740740
}
741741
],
742742
"recent": [
743-
"README.md",
743+
"internal/graph/graph.go",
744+
"internal/graph/graph_test.go",
744745
"stacklit.json",
746+
"README.md",
745747
"npm/install.js",
746748
".gitignore",
747749
"COMPARISON.md",
748750
"USAGE.md",
749751
"examples/README.md",
750-
"internal/cli/derive.go",
751-
"internal/cli/root.go",
752-
"internal/cli/setup.go"
752+
"internal/cli/derive.go"
753753
],
754754
"stable": [
755755
"COMPARISON.md",

0 commit comments

Comments
 (0)