Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

ci: add semantic release #53

Merged
merged 1 commit into from
Sep 20, 2021
Merged

ci: add semantic release #53

merged 1 commit into from
Sep 20, 2021

Conversation

0xdef1cafe
Copy link
Collaborator

@0xdef1cafe 0xdef1cafe commented Sep 17, 2021

This PR does a few things but gets us much closer to CI being setup for this repo.

  • Lints the PR title, rather than every commit. This is what we actually originally wanted. The PR will get squashed into main, and the title will be the commit message. The PR title will be used to for the changelog, and to determine what type of release to do off of main, and allows people to make whatever commits they want to their branch before PRing.
  • Runs the commitlint step on the release action on main - in the event that we sneak in a PR title that doesn't confirm CI will fail.
  • Adds a PR template with docs describing how to title PRs correctly.
  • Will run a Release step on pushing (merging) to main. This uses semantic-release and a bunch of plugins to do the following
    • Parses commit messages to determine release type
    • Generates release notes for each package (if applicable)
    • Writes a CHANGELOG.md file
    • Releases the package(s) on npm
    • Generates a release on GitHub
    • Commits released files to git on main

See the Checks tab above, then the Release job, and the Release step for the output. This PR is running in dry run mode until we remove those checks and merge this to main.

@0xdef1cafe 0xdef1cafe force-pushed the semantic-release branch 7 times, most recently from 1ccc0e7 to 4a0b03f Compare September 17, 2021 23:13
@0xdef1cafe 0xdef1cafe linked an issue Sep 20, 2021 that may be closed by this pull request
@0xdef1cafe 0xdef1cafe force-pushed the semantic-release branch 2 times, most recently from d0024e8 to c297278 Compare September 20, 2021 17:42
@0xdef1cafe 0xdef1cafe changed the title ci: add semantic release ci - add semantic release Sep 20, 2021
@0xdef1cafe 0xdef1cafe changed the title ci - add semantic release ci: add semantic release Sep 20, 2021
@0xdef1cafe 0xdef1cafe force-pushed the semantic-release branch 3 times, most recently from f4f6037 to 90979a7 Compare September 20, 2021 19:18
push:
branches:
- main
- semantic-release # REMOVE THIS
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this before merging

@0xdef1cafe 0xdef1cafe requested review from SterL and a team September 20, 2021 19:28
@0xdef1cafe 0xdef1cafe self-assigned this Sep 20, 2021
@0xdef1cafe 0xdef1cafe added the centralized-foxes Can only be completed by a centralized fox label Sep 20, 2021
@0xdef1cafe 0xdef1cafe marked this pull request as ready for review September 20, 2021 19:29
natven
natven previously approved these changes Sep 20, 2021
Copy link

@natven natven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - defi to communicate branch strategy changes with the workstream and community members

@0xdef1cafe 0xdef1cafe changed the base branch from develop to main September 20, 2021 21:33
@0xdef1cafe 0xdef1cafe dismissed natven’s stale review September 20, 2021 21:33

The base branch was changed.

Copy link

@natven natven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - defi to communicate branch strategy changes with the workstream and community members

@0xdef1cafe 0xdef1cafe merged commit 7cee95a into main Sep 20, 2021
@0xdef1cafe 0xdef1cafe deleted the semantic-release branch September 20, 2021 21:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
centralized-foxes Can only be completed by a centralized fox
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup semantic release
3 participants