Skip to content

Commit 53b78a6

Browse files
author
Brean
committed
fix: Add cargo publish step to release workflow and update Cargo.toml metadata
1 parent f81c18f commit 53b78a6

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,10 @@ jobs:
203203
prerelease: false
204204
env:
205205
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
206+
207+
# Publish to crates.io
208+
- name: Publish to crates.io
209+
if: startsWith(github.ref, 'refs/tags/v')
210+
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
211+
env:
212+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ description = "A tool for cleaning and managing node_modules directories"
77
repository = "https://github.com/Breinss/rust-node-modules-cleaner"
88
homepage = ""
99
license = "MIT"
10+
keywords = ["cli", "node", "cleanup", "disk-space"]
11+
categories = ["command-line-utilities"]
12+
13+
14+
[[bin]]
15+
name = "node-cleaner"
16+
path = "src/main.rs"
1017

1118
[profile.release]
1219
codegen-units = 1

0 commit comments

Comments
 (0)