mirror of
https://github.com/google/gn-language-server.git
synced 2025-12-23 12:26:43 +00:00
Continuously publish to crates.io
This commit is contained in:
parent
4a5f6706f7
commit
ba78819e70
3 changed files with 3 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ exclude = [
|
|||
"docs",
|
||||
"intellij-gn",
|
||||
"testdata",
|
||||
"third_party",
|
||||
"vscode-gn",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue