diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml deleted file mode 100644 index cc5bc4ff..00000000 --- a/.github/workflows/release-plz.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Release-plz - -permissions: - pull-requests: write - contents: write - -on: - push: - branches: - - main - -jobs: - release-plz: - name: Release-plz - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - name: Run release-plz - uses: MarcoIeni/release-plz-action@v0.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/release_please.yml b/.github/workflows/release_please.yml new file mode 100644 index 00000000..4b4f6d01 --- /dev/null +++ b/.github/workflows/release_please.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + repo-url: mdn/rari + manifest-file: .release-please-manifest.json diff --git a/.github/workflows/welcome-bot.yml b/.github/workflows/welcome-bot.yml new file mode 100644 index 00000000..ba7a0851 --- /dev/null +++ b/.github/workflows/welcome-bot.yml @@ -0,0 +1,35 @@ +# This workflow is hosted at: https://github.com/mdn/workflows/blob/main/.github/workflows/allo-allo.yml +# Docs for this workflow: https://github.com/mdn/workflows/blob/main/README.md#allo-allo +name: "AlloAllo" + +on: + issues: + types: + - opened + pull_request_target: + branches: + - main + types: + - opened + - closed + +jobs: + allo-allo: + uses: mdn/workflows/.github/workflows/allo-allo.yml@main + with: + target-repo: "TODO - add this repo in 'mdn/REPOSITORY_NAME' format" + issue-welcome: > + It looks like this is your first issue. Welcome! 👋 + One of the project maintainers will be with you as soon as possible. We + appreciate your patience. To safeguard the health of the project, please + take a moment to read our [code of conduct](../blob/main/CODE_OF_CONDUCT.md). + pr-welcome: > + It looks like this is your first pull request. 🎉 + Thank you for your contribution! One of the project maintainers will triage + and assign the pull request for review. We appreciate your patience. To + safeguard the health of the project, please take a moment to read our + [code of conduct](../blob/main/CODE_OF_CONDUCT.md). + pr-merged: > + Congratulations on your first merged pull request. 🎉 Thank you for your contribution! + Did you know we have a [project board](https://github.com/orgs/mdn/projects/25) with high-impact contribution opportunities? + We look forward to your next contribution. diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{} diff --git a/Cargo.toml b/Cargo.toml index eddba13d..38a3adcb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,6 @@ edition = "2021" license = "MPL-2.0" authors = ["Florian Dieminger "] rust-version = "1.80" -publish = false [workspace.dependencies] rari-doc = { path = "crates/rari-doc" } diff --git a/crates/css-definition-syntax/Cargo.toml b/crates/css-definition-syntax/Cargo.toml index f6abbfc5..763c9a76 100644 --- a/crates/css-definition-syntax/Cargo.toml +++ b/crates/css-definition-syntax/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] thiserror.workspace = true diff --git a/crates/css-syntax-types/Cargo.toml b/crates/css-syntax-types/Cargo.toml index a28f35c6..c7dabbb4 100644 --- a/crates/css-syntax-types/Cargo.toml +++ b/crates/css-syntax-types/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] serde_json.workspace = true diff --git a/crates/css-syntax/Cargo.toml b/crates/css-syntax/Cargo.toml index ce5eaddb..3e8c0414 100644 --- a/crates/css-syntax/Cargo.toml +++ b/crates/css-syntax/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] thiserror.workspace = true diff --git a/crates/diff-test/Cargo.toml b/crates/diff-test/Cargo.toml index a382294a..00353ea7 100644 --- a/crates/diff-test/Cargo.toml +++ b/crates/diff-test/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] rayon.workspace = true diff --git a/crates/rari-data/Cargo.toml b/crates/rari-data/Cargo.toml index 36ea47c3..65735a58 100644 --- a/crates/rari-data/Cargo.toml +++ b/crates/rari-data/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] rari-utils.workspace = true diff --git a/crates/rari-deps/Cargo.toml b/crates/rari-deps/Cargo.toml index 823bba2c..f119a0a8 100644 --- a/crates/rari-deps/Cargo.toml +++ b/crates/rari-deps/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] rari-utils.workspace = true diff --git a/crates/rari-doc/Cargo.toml b/crates/rari-doc/Cargo.toml index d9e556ae..22d3370d 100644 --- a/crates/rari-doc/Cargo.toml +++ b/crates/rari-doc/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] thiserror.workspace = true diff --git a/crates/rari-l10n/Cargo.toml b/crates/rari-l10n/Cargo.toml index 5fbf0155..5022c466 100644 --- a/crates/rari-l10n/Cargo.toml +++ b/crates/rari-l10n/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] rari-types.workspace = true diff --git a/crates/rari-linter/Cargo.toml b/crates/rari-linter/Cargo.toml index 613706bd..c88e4dad 100644 --- a/crates/rari-linter/Cargo.toml +++ b/crates/rari-linter/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] thiserror.workspace = true diff --git a/crates/rari-md/Cargo.toml b/crates/rari-md/Cargo.toml index 48bee0ca..511961d4 100644 --- a/crates/rari-md/Cargo.toml +++ b/crates/rari-md/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] anyhow.workspace = true diff --git a/crates/rari-templ-func/Cargo.toml b/crates/rari-templ-func/Cargo.toml index 9abd1d65..1a0be252 100644 --- a/crates/rari-templ-func/Cargo.toml +++ b/crates/rari-templ-func/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [lib] proc-macro = true diff --git a/crates/rari-tools/Cargo.toml b/crates/rari-tools/Cargo.toml index 8cadf0d7..d589969e 100644 --- a/crates/rari-tools/Cargo.toml +++ b/crates/rari-tools/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] rari-types.workspace = true diff --git a/crates/rari-types/Cargo.toml b/crates/rari-types/Cargo.toml index c4835de6..d4190cbf 100644 --- a/crates/rari-types/Cargo.toml +++ b/crates/rari-types/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [features] testing = [] diff --git a/crates/rari-utils/Cargo.toml b/crates/rari-utils/Cargo.toml index 4e0e0d0f..5c5b3a8c 100644 --- a/crates/rari-utils/Cargo.toml +++ b/crates/rari-utils/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true authors.workspace = true license.workspace = true rust-version.workspace = true -publish.workspace = true [dependencies] thiserror.workspace = true diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..455e5c10 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,9 @@ +{ + "bootstrap-sha": "eefc5a8d6dd623b6928fd99dc5681095a29cb633", + "bump-minor-pre-major": true, + "packages": { + ".": { + "release-type": "rust" + } + } +} diff --git a/release-plz.toml b/release-plz.toml index 72a91725..c3f69b30 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -9,6 +9,7 @@ semver_check = false [[package]] name = "rari" git_tag_name = "v{{ version }}" +publish = false git_tag_enable = true git_release_enable = true git_release_type = "auto"