Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): Unify barretenberg releases with aztec-packages #2120

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 16 additions & 29 deletions .github/workflows/release_please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,29 @@ on:
push:
branches:
- master
- pw/bb-releases

permissions:
contents: write
pull-requests: write

jobs:
release-please:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- name: Run Release Please
id: release
uses: google-github-actions/release-please-action@v3
with:
# Our release type is simple as all we really want is to update the changelog and trigger a github release
release-type: simple
# Self explanatory
package-name: aztec-packages
# Marks github releases as 'Pre-Release'
prerelease: true
# Our default branch
default-branch: master
# Uses the 'prerelease' versioning strategy to update the pre-release number only e.g. 0.1.0-alpha23 -> 0.1.0-alpha24
versioning-strategy: prerelease
# Don't include the component name in the tag name
include-component-in-tag: false
# Influences the versioning strategy to only update the pre-release number
bump-minor-pre-major: true
# Influences the versioning strategy to only update the pre-release number
bump-patch-for-minor-pre-major: true
# Just a bit of test at the top of the 'Release PR'
pull-request-header: ":robot: I have created a new Aztec Packages release"
# The sections into which changes are grouped on the github release notes
changelog-types: >
[
{"type":"feat","section":"Features","hidden":false},
{"type":"fix","section":"Bug Fixes","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false},
{"type":"test","section":"Miscellaneous","hidden":false},
{"type":"refactor","section":"Miscellaneous","hidden":false},
{"type":"docs","section":"Documentation","hidden":false}
]
command: manifest

- name: Dispatch to publish workflow
uses: benc-uk/workflow-dispatch@v1
if: ${{ steps.release.outputs.tag_name }}
with:
workflow: publish-bb.yml
repo: AztecProtocol/aztec-packages
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "tag": "${{ steps.release.outputs.tag_name }}", "publish": true }'
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ ".": "0.5.1", "barretenberg": "0.5.1", "ts": "0.5.1" }
34 changes: 0 additions & 34 deletions circuits/cpp/barretenberg/.github/workflows/release-please.yml

This file was deleted.

1 change: 0 additions & 1 deletion circuits/cpp/barretenberg/.release-please-manifest.json

This file was deleted.

36 changes: 0 additions & 36 deletions circuits/cpp/barretenberg/release-please-config.json

This file was deleted.

49 changes: 49 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"release-type": "simple",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"prerelease": true,
"group-pull-request-title-pattern": "chore(master): Release ${version}",
"pull-request-header": ":robot: I have created a new Aztec Packages release",
"versioning": "default",
"include-component-in-tag": true,
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
{ "type": "test", "section": "Miscellaneous", "hidden": false },
{ "type": "refactor", "section": "Miscellaneous", "hidden": false },
{ "type": "docs", "section": "Documentation", "hidden": false }
],
"packages": {
".": {
"release-type": "simple",
"component": "aztec-packages",
"package-name": "aztec-packages"
},
"barrentenberg/ts": {
"release-type": "node",
"package-name": "barretenberg.js",
"component": "barretenberg.js"
},
"barretenberg": {
"release-type": "simple",
"component": "barretenberg",
"package-name": "barretenberg",
"extra-files": [
"cpp/CMakeLists.txt",
"VERSION",
"barretenberg.nix",
"barretenberg-wasm.nix"
]
}
},
"plugins": [
{
"type": "linked-versions",
"groupName": "aztec-packages",
"components": ["barretenberg", "barretenberg.js", "aztec-packages"]
},
"sentence-case"
]
}