load-secrets-action
load-secrets-action copied to clipboard
Draft: Testing how to automate releases
This is a draft PR demonstrating how we can use semantic-release to automatically publish releases for this repository.
How to Test
- Clone this repo locally and
cdinto it. - From the root of the repo, run
git pull && git checkout ruetz-automate-releases.
This PR can be tested in two ways:
Locally
- Prerequisite 1: Have act installed.
- 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:packagesscopes. - Copy the resulting
ghp_...token value.
- Name it
- 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
Releasejob logs, verify that the resulting version number is bumped (as of this writing the latest release isv2.0.0; in my testing the next version results inv2.1.0).
CI/CD
- Make a new commit on this
ruetz-automate-releasesbranch. git pushit up to the remote.
- [ ] Verify that the GHA workflows all run and succeed.
- [ ] In the
Releasejob logs, verify that the resulting version number is bumped (as of this writing the latest release isv2.0.0; in my testing the next version results inv2.1.0).