Continuously publish to crates.io

This commit is contained in:
Shuhei Takahashi 2025-12-22 20:50:11 +09:00
parent 4a5f6706f7
commit ba78819e70
3 changed files with 3 additions and 2 deletions

View file

@ -228,7 +228,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@8a40291d6a0a08b8fb98b13bad5a0305b42d5f9c # 1.92.0
- run: if ! python3 scripts/is_prerelease.py; then cargo publish; fi
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')

View file

@ -10,6 +10,7 @@ exclude = [
"docs",
"intellij-gn",
"testdata",
"third_party",
"vscode-gn",
]

View file

@ -45,7 +45,7 @@ def main():
if options.update:
subprocess.check_call(
['cargo', 'set-version', new_version],
['cargo', 'set-version', f'{new_version}-prerelease'],
stdout=subprocess.DEVNULL)
subprocess.check_call(
['npm', 'version', new_version],