* Create tags on GitHub using API
To allow for signed tags to be created,
rather than use the git CLI to push tags,
manually push each tag using the GitHub API,
which will sign the tag using the built-in GitHub GPG key.
* Use ghcommit to push changes
To allow for all commits to be signed,
use the GitHub API to push changes.
* Add changeset version
* Allow tag publish to fail, assume it was manually published
* Add to changeset
* Update @s0/ghcommit
* Update ghcommit to fix missing ref bug
* Make using GitHub API Optional
Change this to a minor version bump,
with a new feature that allows for using the
GitHub API to create tags and commits.
* Use a strategy pattern for GitHub API vs CLI usage
* refactor git interactions
* fix mock thing
* usechangesets pkg
* switch to `commitMode`
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
* Switch to pull request list API instead of search
To reduce the amount of rate-limit that we use,
switch to a cheaper API for determining whether
an existing PR exists for a given branch.
* Ensure PR remains open when updating description
* Update .changeset/clean-bees-count.md
Co-authored-by: willo-icon <161356817+willo-icon@users.noreply.github.com>
---------
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: willo-icon <161356817+willo-icon@users.noreply.github.com>
* Don't create a PR if all changesets are empty
Fixes#205.
Note that this maintains the previous behavior that if there are any
changesets (even empty ones), the action does not publish packages.
* Create three-needles-protect.md
* Update .changeset/three-needles-protect.md
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
* fix: body max length
* docs: improve logs
* docs: changeset
* refactor: changeset message to omit some info if message exceeds size limit
* refactor: minor adjustments based on feedback
* Apply nits from code review
* Fixed tests
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
* feat: add cwd for projects that not in the root directory
* docs: add cwd to README
* reword the added log
* tweak changeset
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
* Switch to Changesets-based release process
* Bump version
* drop unused variable
* Update .github/workflows/version-or-publish.yml
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
* Push also to a release line branch when releasing
* Change node version used in the version-or-publish workflow
* Switch to using the local action
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
* build the action before trying to use it the workflow
* Add changeset and actually setup Changesets, lol
Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
* Resolve @changesets/cli with resolve-from
* Use require.resolve directly
* Add documentation section to README
* Add custom version command docs for Yarn 2