Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies to allow publish #452

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/publish-tree-sitter-stack-graphs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,6 @@ jobs:
working-directory: ${{ env.CRATE_DIR }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
publish-npm:
needs: publish-crate
runs-on: ubuntu-latest
env:
PACKAGE_DIR: './tree-sitter-stack-graphs/npm'
steps:
- name: Install Node environment
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- name: Checkout repository
uses: actions/checkout@v3
# TODO Verify the package version matches the tag
- name: Install dependencies
run: npm install
working-directory: ${{ env.PACKAGE_DIR }}
- name: Verify package
run: npm publish --dry-run
working-directory: ${{ env.PACKAGE_DIR }}
- name: Publish package
run: npm publish
working-directory: ${{ env.PACKAGE_DIR }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
create-release:
needs: publish-crate
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
anyhow = { version = "1.0", optional = true }
clap = { version = "4", features = ["derive"], optional = true }
tree-sitter-java = { version = "=0.20.2" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate

[dev-dependencies]
anyhow = { version = "1.0" }
Expand Down
4 changes: 2 additions & 2 deletions languages/tree-sitter-stack-graphs-javascript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ anyhow = { version = "1.0", optional = true }
clap = { version = "4", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
stack-graphs = { path = "../../stack-graphs" }
stack-graphs = { version = "0.14", path = "../../stack-graphs" } # explicit version is required to be able to publish crate
tree-sitter-graph = "0.11.2"
tree-sitter-javascript = "=0.20.4"
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate

[dev-dependencies]
anyhow = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
[dependencies]
anyhow = { version = "1.0", optional = true }
clap = { version = "4", optional = true, features = ["derive"] }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
tree-sitter-python = "=0.20.4"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions languages/tree-sitter-stack-graphs-typescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ clap = { version = "4", optional = true }
glob = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
stack-graphs = { path = "../../stack-graphs" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
stack-graphs = { version = "0.14", path = "../../stack-graphs" } # explicit version is required to be able to publish crate
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
tree-sitter-typescript = "=0.20.2"
tsconfig = "0.1.0"

Expand Down
2 changes: 1 addition & 1 deletion stack-graphs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enumset = "1.1"
fxhash = "0.2"
itertools = "0.10.2"
libc = "0.2"
lsp-positions = { version = "0.3", path = "../lsp-positions" }
lsp-positions = { version = "0.3", path = "../lsp-positions" } # explicit version is required to be able to publish crate
rusqlite = { version = "0.28", optional = true, features = ["bundled", "functions"] }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions tree-sitter-stack-graphs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ env_logger = { version = "0.9", optional = true }
indoc = { version = "1.0", optional = true }
itertools = "0.10"
log = "0.4"
lsp-positions = { version="0.3", path="../lsp-positions", features=["tree-sitter"] }
lsp-positions = { version="0.3", path="../lsp-positions", features=["tree-sitter"] } # explicit version is required to be able to publish crate
once_cell = "1"
pathdiff = { version = "0.2.1", optional = true }
regex = "1"
rust-ini = "0.18"
serde_json = { version="1.0", optional=true }
sha1 = { version="0.10", optional=true }
stack-graphs = { path="../stack-graphs" }
stack-graphs = { version = "0.14", path="../stack-graphs" } # explicit version is required to be able to publish crate
thiserror = "1.0"
time = { version = "0.3", optional = true }
tokio = { version = "1.26", optional = true, features = ["io-std", "rt", "rt-multi-thread"] }
Expand Down
Loading