Skip to content

Commit 442bbb6

Browse files
fix(.github): specify package name in cargo build (#391)
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
1 parent 1564290 commit 442bbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
toolchain: stable
5656
override: true
5757

58-
- run: cargo build --release
58+
- run: cargo build --package cli --release
5959

6060
- run: tar czvf commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz -C target/release commitlint${{ matrix.config.ext }}
6161

@@ -84,7 +84,7 @@ jobs:
8484
target/
8585
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
8686
restore-keys: ${{ runner.os }}-cargo-
87-
- run: cargo publish
87+
- run: cargo publish --package cli
8888
env:
8989
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
9090

0 commit comments

Comments
 (0)