load-secrets-action icon indicating copy to clipboard operation
load-secrets-action copied to clipboard

Draft: Testing how to automate releases

Open dustin-ruetz opened this issue 1 year ago • 0 comments

This is a draft PR demonstrating how we can use semantic-release to automatically publish releases for this repository.

How to Test

  1. Clone this repo locally and cd into it.
  2. From the root of the repo, run git pull && git checkout ruetz-automate-releases.

This PR can be tested in two ways:

Locally

  1. Prerequisite 1: Have act installed.
  2. Prerequisite 2: Generate a temporary GitHub Personal Access Token (PAT) (note: you can delete this token after you're done testing locally).
    • Name it GITHUB_TOKEN.
    • Configure it to have the repo, workflow, write:packages scopes.
    • Copy the resulting ghp_... token value.
  3. Run the following command (replacing ghp_... with the resulting token value from Step 2): act -s GITHUB_TOKEN=ghp_...
  • [ ] Verify that the GHA workflows all run and succeed.
  • [ ] In the Release job logs, verify that the resulting version number is bumped (as of this writing the latest release is v2.0.0; in my testing the next version results in v2.1.0).

CI/CD

  1. Make a new commit on this ruetz-automate-releases branch.
  2. git push it up to the remote.
  • [ ] Verify that the GHA workflows all run and succeed.
  • [ ] In the Release job logs, verify that the resulting version number is bumped (as of this writing the latest release is v2.0.0; in my testing the next version results in v2.1.0).

dustin-ruetz avatar Apr 03 '24 21:04 dustin-ruetz