chore: release main (#226) #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: [self-hosted, ARM64] | |
steps: | |
- uses: actions/[email protected] | |
id: configure-changelog | |
with: | |
result-encoding: string | |
script: | | |
const changelogTypes = [ | |
{type: "feat", section: "Features", hidden: false}, | |
{type: "chore", section: "Misc", hidden: false}, | |
{type: "fix", section: "BugFixes", hidden: false}, | |
] | |
return JSON.stringify(changelogTypes) | |
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow | |
# For why we need to generate a token and not use the default | |
- name: Generate token | |
id: generate_token | |
uses: chanzuckerberg/[email protected] | |
with: | |
app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }} | |
private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }} | |
- name: release please | |
# DO NOT CHANGE THIS VERSION OF RELEASE-PLEASE PLEASEEEEEEE | |
# A future version of release-please seems to be broken and we haven't figured out | |
# why, but this version works. Updating this version will break future releases numbers. | |
uses: google-github-actions/[email protected] | |
id: release | |
with: | |
release-type: simple | |
command: manifest | |
bump-minor-pre-major: true | |
changelog-types: ${{ steps.configure-changelog.outputs.result }} | |
token: ${{ steps.generate_token.outputs.token }} | |
monorepo-tags: true | |
manifest-file: ".release-please-manifest.json" | |
config-file: "release-please-config.json" | |
# bump |