Skip to content

Commit

Permalink
chore(build): Unify barretenberg releases with aztec-packages (#2120)
Browse files Browse the repository at this point in the history
This PR unifies the release of barretenberg with the wider
aztec-packages repo.

# Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if
the PR is ready to merge.
- [ ] If the pull request requires a cryptography review (e.g.
cryptographic algorithm implementations) I have added the 'crypto' tag.
- [ ] I have reviewed my diff in github, line by line and removed
unexpected formatting changes, testing logs, or commented-out code.
- [ ] Every change is related to the PR description.
- [ ] I have
[linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
this pull request to relevant issues (if any exist).
  • Loading branch information
PhilWindle authored Sep 8, 2023
1 parent a5f2852 commit 82823d8
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 100 deletions.
File renamed without changes.
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"
]
}

0 comments on commit 82823d8

Please sign in to comment.