Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 978a0da

Browse files
author
Hendrik van Antwerpen
authored
Merge pull request #141 from github/just-publish
Fix publishing workflows
2 parents 3d7ace8 + a0045bb commit 978a0da

File tree

3 files changed

+27
-24
lines changed

3 files changed

+27
-24
lines changed

.github/workflows/publish-lsp-positions.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
21+
- name: Test crate
22+
run: cargo test --all-features
23+
working-directory: ${{ env.CRATE_DIR }}
2124
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
25+
run: cargo publish --dry-run
26+
working-directory: ${{ env.CRATE_DIR }}
2627
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
run: cargo publish
29+
working-directory: ${{ env.CRATE_DIR }}
30+
env:
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3132
create-release:
3233
needs: publish-crate
3334
runs-on: ubuntu-latest

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
21+
- name: Test crate
22+
run: cargo test --all-features
23+
working-directory: ${{ env.CRATE_DIR }}
2124
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
25+
run: cargo publish --dry-run
26+
working-directory: ${{ env.CRATE_DIR }}
2627
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
run: cargo publish
29+
working-directory: ${{ env.CRATE_DIR }}
30+
env:
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3132
create-release:
3233
needs: publish-crate
3334
runs-on: ubuntu-latest

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
21+
- name: Test crate
22+
run: cargo test --all-features
23+
working-directory: ${{ env.CRATE_DIR }}
2124
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
25+
run: cargo publish --dry-run
26+
working-directory: ${{ env.CRATE_DIR }}
2627
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
28+
run: cargo publish
29+
working-directory: ${{ env.CRATE_DIR }}
30+
env:
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3132
publish-npm:
3233
needs: publish-crate
3334
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)