Skip to content

Commit eaaaa20

Browse files
committed
fix: align npm OIDC publish with glin-profanity pattern
Upgrade npm for OIDC support, remove NODE_AUTH_TOKEN env var, use working-directory instead of cd.
1 parent 6296032 commit eaaaa20

2 files changed

Lines changed: 29 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
with:
3939
node-version: '20'
4040
registry-url: 'https://registry.npmjs.org'
41+
- name: Upgrade npm for OIDC support
42+
run: npm install -g npm@latest
4143
- name: Update npm package version from tag
4244
run: |
4345
VERSION="${GITHUB_REF_NAME#v}"
4446
cd npm
4547
npm version "$VERSION" --no-git-tag-version --allow-same-version
4648
- name: Publish to npm with provenance
47-
run: cd npm && npm publish --access public --provenance
49+
working-directory: npm
50+
run: npm publish --provenance --access public

stacklit.json

Lines changed: 25 additions & 25 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-11T21:16:42Z",
4+
"generated_at": "2026-04-11T21:25:30Z",
55
"stacklit_version": "dev",
6-
"merkle_hash": "dcc7d770eed645addb8cd8239c889f2b16333d4bae240bc662cabf562c7e505f",
6+
"merkle_hash": "c54196674f574568c9cf9e2f2207d0708bfbcd48cfaf336eda503c7ab5a0449f",
77
"project": {
88
"name": "stacklit",
99
"root": ".",
@@ -14,7 +14,7 @@
1414
"languages": {
1515
"go": {
1616
"files": 59,
17-
"lines": 7994
17+
"lines": 8068
1818
},
1919
"java": {
2020
"files": 1,
@@ -47,7 +47,7 @@
4747
"cmd/stacklit/main.go"
4848
],
4949
"total_files": 70,
50-
"total_lines": 8200
50+
"total_lines": 8274
5151
},
5252
"modules": {
5353
"assets": {
@@ -251,7 +251,7 @@
251251
"purpose": "Dependency graph",
252252
"language": "go",
253253
"files": 2,
254-
"lines": 626,
254+
"lines": 645,
255255
"file_list": [
256256
"graph.go",
257257
"graph_test.go"
@@ -325,7 +325,7 @@
325325
"purpose": "Source code parsers",
326326
"language": "go",
327327
"files": 20,
328-
"lines": 3212,
328+
"lines": 3267,
329329
"file_list": [
330330
"generic.go",
331331
"generic_test.go",
@@ -418,16 +418,16 @@
418418
"type Project"
419419
],
420420
"type_defs": {
421-
"Architecture": "Pattern string, Summary string",
422421
"Dependencies": "Edges [][]string, Entrypoints []string, MostDepended []string, Isolated []string",
423422
"GitInfo": "HotFiles []HotFile, Recent []string, Stable []string",
423+
"Hints": "AddFeature string, TestCmd string, EnvVars []string, DoNotTouch []string",
424424
"HotFile": "Path string, Commits90d int",
425425
"Index": "Schema string, Version string, GeneratedAt string, StacklitVersion string, MerkleHash string, Project Project, Tech Tech, Structure Structure, Modules map[string]ModuleInfo, Dependencies Dependenci...",
426-
"LangStats": "Files int, Lines int",
427426
"ModuleInfo": "Purpose string, Language string, Files int, Lines int, FileList []string, Exports []string, TypeDefs map[string]string, DependsOn []string, DependedBy []string, Activity string",
428-
"Project": "Name string, Root string, Type string, Workspaces []string",
427+
"MultiIndex": "Schema string, Version string, Type string, GeneratedAt string, TotalFiles int, TotalLines int, TotalModules int, Repos []RepoSummary",
429428
"RepoSummary": "Name string, Path string, PrimaryLanguage string, TotalFiles int, TotalLines int, Modules map[string]ModuleInfo, Frameworks []string, Entrypoints []string",
430-
"Structure": "Entrypoints []string, TotalFiles int, TotalLines int, KeyDirectories map[string]string"
429+
"Structure": "Entrypoints []string, TotalFiles int, TotalLines int, KeyDirectories map[string]string",
430+
"Tech": "PrimaryLanguage string, Languages map[string]LangStats, Frameworks []string"
431431
},
432432
"depended_by": [
433433
"internal/cli",
@@ -660,7 +660,7 @@
660660
"hot_files": [
661661
{
662662
"path": "stacklit.json",
663-
"commits_90d": 20
663+
"commits_90d": 21
664664
},
665665
{
666666
"path": "stacklit.mmd",
@@ -690,6 +690,10 @@
690690
"path": "go.mod",
691691
"commits_90d": 6
692692
},
693+
{
694+
"path": "internal/graph/graph_test.go",
695+
"commits_90d": 6
696+
},
693697
{
694698
"path": "internal/renderer/mermaid.go",
695699
"commits_90d": 6
@@ -707,12 +711,12 @@
707711
"commits_90d": 5
708712
},
709713
{
710-
"path": "internal/graph/graph_test.go",
714+
"path": "internal/renderer/mermaid_test.go",
711715
"commits_90d": 5
712716
},
713717
{
714-
"path": "internal/renderer/mermaid_test.go",
715-
"commits_90d": 5
718+
"path": ".github/workflows/release.yml",
719+
"commits_90d": 4
716720
},
717721
{
718722
"path": "internal/cli/root.go",
@@ -723,8 +727,8 @@
723727
"commits_90d": 4
724728
},
725729
{
726-
"path": ".github/workflows/release.yml",
727-
"commits_90d": 3
730+
"path": "internal/parser/python_test.go",
731+
"commits_90d": 4
728732
},
729733
{
730734
"path": ".gitignore",
@@ -733,23 +737,19 @@
733737
{
734738
"path": "examples/README.md",
735739
"commits_90d": 3
736-
},
737-
{
738-
"path": "internal/cli/generate.go",
739-
"commits_90d": 3
740740
}
741741
],
742742
"recent": [
743743
".github/workflows/release.yml",
744-
"npm/package.json",
745744
"stacklit.json",
746-
"internal/graph/graph.go",
745+
"npm/package.json",
747746
"internal/graph/graph_test.go",
747+
"internal/parser/python_test.go",
748+
"internal/parser/ts_python.go",
749+
"internal/graph/graph.go",
748750
"README.md",
749751
"npm/install.js",
750-
".gitignore",
751-
"COMPARISON.md",
752-
"USAGE.md"
752+
".gitignore"
753753
],
754754
"stable": [
755755
"COMPARISON.md",

0 commit comments

Comments
 (0)