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

do not create release without .changeset file #1142

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

skudasov
Copy link
Collaborator

@skudasov skudasov commented Sep 18, 2024


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes focus on refining the GitHub Actions workflow for releasing Go modules. They aim to enhance the automated processes for extracting package names, generating release notes, setting up Go, installing tools, preparing for release, and building binary releases, ensuring a smoother and more reliable release process.

What

  • .github/workflows/release-go-module.yml
    • Modified the "Extract Package Name from Tag" step to initialize variables without actual extraction logic, aiming for placeholders for future implementations.
    • Updated the "Find Last Tag for Package and Generate Release Notes" step to include logic for handling the absence of a previous tag and preparing the environment for generating release notes based on commit messages, albeit without specific commit retrieval logic.
    • Adjusted the "Set up Go" step to specify Go version '1.22.6', ensuring consistency with the required Go version for the project.
    • Included a step for installing the gorelease tool, which is pivotal for checking for breaking changes between versions.
    • Added steps to read additional release notes from a file if available, enhancing the release notes' detail and accuracy.
    • Changed the "Create GitHub Release" step to conditionally execute based on the always() function, suggesting a refinement in execution strategy but without altering its core functionality.
    • Introduced a check for the existence of the 'cmd' directory to determine the presence of a Go entry point, which is crucial for the subsequent binary build step.
    • Utilized wangyoucao577/go-release-action@v1 for building binary releases, indicating a streamlined approach to compiling and releasing Go binaries for multiple platforms and architectures.

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@skudasov skudasov merged commit 74cd095 into main Sep 18, 2024
48 checks passed
@skudasov skudasov deleted the fix-release-pipeline branch September 18, 2024 12:00
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.

3 participants