forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.26 KB
/
bump-swc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Bump up swc
on:
schedule:
# two times daily, at 12:00 and 06:00
- cron: "0 0 * * *"
- cron: "0 0,6 * * *"
jobs:
upgrade-swc-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
override: true
- name: Install cargo-edit
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-edit
version: "0.11.6"
- name: Install cargo-outdated
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-outdated
version: "0.11.1"
- name: Run cargo upgrade
uses: kwonoj/gha-cargo-upgrade@latest
with:
token: ${{ secrets.GHA_UPGRADE_TOKEN }}
# These are the packages relying on swc
packages: "swc_core,testing,swc_emotion,styled_jsx,styled_components,modularize_imports,mdxjs"
# To reduce noise, we'll only open a PR if these packages are updated altogether
mandatory_packages: "swc_core,swc_emotion,styled_jsx,styled_components,modularize_imports"
# We'll bump anyway, let PR fails if it have breaking changes to resolve manually
incompatible: true