mirror of
https://github.com/swc-project/swc.git
synced 2024-11-22 15:25:01 +03:00
chore(ci): Bump crates before publishing (#9308)
**Related issue:** - Closes https://github.com/swc-project/swc/issues/9304
This commit is contained in:
parent
7514d9b705
commit
a6d1db8611
36
.github/workflows/publish.yml
vendored
36
.github/workflows/publish.yml
vendored
@ -40,9 +40,44 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
cargo-bump:
|
||||||
|
name: "Bump crates"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
|
||||||
|
- name: Install cargo-edit
|
||||||
|
uses: baptiste0928/cargo-install@v2.2.0
|
||||||
|
with:
|
||||||
|
crate: cargo-edit
|
||||||
|
version: "0.12.2"
|
||||||
|
locked: true
|
||||||
|
|
||||||
|
- name: Install cargo-mono
|
||||||
|
uses: baptiste0928/cargo-install@v2.2.0
|
||||||
|
with:
|
||||||
|
crate: cargo-mono
|
||||||
|
version: "0.3.7"
|
||||||
|
|
||||||
|
- run: cargo bump
|
||||||
|
|
||||||
|
- uses: webfactory/ssh-agent@v0.5.4
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.SWC_BOT_SSH }}
|
||||||
|
|
||||||
|
- name: Push bump commit
|
||||||
|
run: |
|
||||||
|
git push git@github.com:swc-project/swc.git --no-verify
|
||||||
|
|
||||||
publish-cargo:
|
publish-cargo:
|
||||||
name: "Publish cargo crates"
|
name: "Publish cargo crates"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- cargo-bump
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -64,7 +99,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
crate: cargo-mono
|
crate: cargo-mono
|
||||||
version: "0.3.7"
|
version: "0.3.7"
|
||||||
locked: true
|
|
||||||
|
|
||||||
- name: Update constant of swc_core
|
- name: Update constant of swc_core
|
||||||
run: npx ts-node .github/bot/src/cargo/update-constants.ts
|
run: npx ts-node .github/bot/src/cargo/update-constants.ts
|
||||||
|
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -2510,9 +2510,9 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "openssl"
|
name = "openssl"
|
||||||
version = "0.10.62"
|
version = "0.10.66"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671"
|
checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.5.0",
|
"bitflags 2.5.0",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
@ -2542,9 +2542,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "openssl-sys"
|
name = "openssl-sys"
|
||||||
version = "0.9.98"
|
version = "0.9.103"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7"
|
checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"libc",
|
"libc",
|
||||||
|
Loading…
Reference in New Issue
Block a user