Skip to content

Commit 627e93c

Browse files
Merge pull request #452 from github/remve-npm-action
Fix dependencies to allow publish
2 parents d7665d1 + 9649181 commit 627e93c

File tree

7 files changed

+9
-34
lines changed

7 files changed

+9
-34
lines changed

.github/workflows/publish-tree-sitter-stack-graphs.yml

-25
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,6 @@ jobs:
2929
working-directory: ${{ env.CRATE_DIR }}
3030
env:
3131
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
32-
publish-npm:
33-
needs: publish-crate
34-
runs-on: ubuntu-latest
35-
env:
36-
PACKAGE_DIR: './tree-sitter-stack-graphs/npm'
37-
steps:
38-
- name: Install Node environment
39-
uses: actions/setup-node@v3
40-
with:
41-
node-version: 16.x
42-
registry-url: 'https://registry.npmjs.org'
43-
- name: Checkout repository
44-
uses: actions/checkout@v3
45-
# TODO Verify the package version matches the tag
46-
- name: Install dependencies
47-
run: npm install
48-
working-directory: ${{ env.PACKAGE_DIR }}
49-
- name: Verify package
50-
run: npm publish --dry-run
51-
working-directory: ${{ env.PACKAGE_DIR }}
52-
- name: Publish package
53-
run: npm publish
54-
working-directory: ${{ env.PACKAGE_DIR }}
55-
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5732
create-release:
5833
needs: publish-crate
5934
runs-on: ubuntu-latest

languages/tree-sitter-stack-graphs-java/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
4141
anyhow = { version = "1.0", optional = true }
4242
clap = { version = "4", features = ["derive"], optional = true }
4343
tree-sitter-java = { version = "=0.20.2" }
44-
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
44+
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
4545

4646
[dev-dependencies]
4747
anyhow = { version = "1.0" }

languages/tree-sitter-stack-graphs-javascript/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ anyhow = { version = "1.0", optional = true }
3030
clap = { version = "4", optional = true }
3131
serde = { version = "1.0", features = ["derive"] }
3232
serde_json = "1.0"
33-
stack-graphs = { path = "../../stack-graphs" }
33+
stack-graphs = { version = "0.14", path = "../../stack-graphs" } # explicit version is required to be able to publish crate
3434
tree-sitter-graph = "0.11.2"
3535
tree-sitter-javascript = "=0.20.4"
36-
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
36+
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
3737

3838
[dev-dependencies]
3939
anyhow = "1.0"

languages/tree-sitter-stack-graphs-python/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
3030
[dependencies]
3131
anyhow = { version = "1.0", optional = true }
3232
clap = { version = "4", optional = true, features = ["derive"] }
33-
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
33+
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
3434
tree-sitter-python = "=0.20.4"
3535

3636
[dev-dependencies]

languages/tree-sitter-stack-graphs-typescript/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ clap = { version = "4", optional = true }
3232
glob = "0.3"
3333
serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
35-
stack-graphs = { path = "../../stack-graphs" }
36-
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
35+
stack-graphs = { version = "0.14", path = "../../stack-graphs" } # explicit version is required to be able to publish crate
36+
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
3737
tree-sitter-typescript = "=0.20.2"
3838
tsconfig = "0.1.0"
3939

stack-graphs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enumset = "1.1"
3232
fxhash = "0.2"
3333
itertools = "0.10.2"
3434
libc = "0.2"
35-
lsp-positions = { version = "0.3", path = "../lsp-positions" }
35+
lsp-positions = { version = "0.3", path = "../lsp-positions" } # explicit version is required to be able to publish crate
3636
rusqlite = { version = "0.28", optional = true, features = ["bundled", "functions"] }
3737
serde = { version = "1.0", optional = true, features = ["derive"] }
3838
serde_json = { version = "1.0", optional = true }

tree-sitter-stack-graphs/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ env_logger = { version = "0.9", optional = true }
6262
indoc = { version = "1.0", optional = true }
6363
itertools = "0.10"
6464
log = "0.4"
65-
lsp-positions = { version="0.3", path="../lsp-positions", features=["tree-sitter"] }
65+
lsp-positions = { version="0.3", path="../lsp-positions", features=["tree-sitter"] } # explicit version is required to be able to publish crate
6666
once_cell = "1"
6767
pathdiff = { version = "0.2.1", optional = true }
6868
regex = "1"
6969
rust-ini = "0.18"
7070
serde_json = { version="1.0", optional=true }
7171
sha1 = { version="0.10", optional=true }
72-
stack-graphs = { path="../stack-graphs" }
72+
stack-graphs = { version = "0.14", path="../stack-graphs" } # explicit version is required to be able to publish crate
7373
thiserror = "1.0"
7474
time = { version = "0.3", optional = true }
7575
tokio = { version = "1.26", optional = true, features = ["io-std", "rt", "rt-multi-thread"] }

0 commit comments

Comments
 (0)