Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Testing how to automate releases #69

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dustin-ruetz
Copy link
Contributor

@dustin-ruetz dustin-ruetz commented Apr 3, 2024

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 dustin-ruetz self-assigned this Apr 3, 2024
@dustin-ruetz dustin-ruetz marked this pull request as draft April 15, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant