Skip to content

Release/workflow#6

Merged
lupodevelop merged 2 commits intomainfrom
release/workflow
Nov 9, 2025
Merged

Release/workflow#6
lupodevelop merged 2 commits intomainfrom
release/workflow

Conversation

@lupodevelop
Copy link
Owner

This pull request prepares the project for its 1.0.0 release and updates the publishing workflow to streamline package publishing for future versions. The most significant changes are grouped below:

Versioning and Release Preparation:

  • Updated the project version to 1.0.0 in gleam.toml, marking the first major release and indicating API stability.

Publishing Workflow Improvements:

  • Modified the Hex publishing step in .github/workflows/release.yml to handle pre-1.0.0 versions by piping the required confirmation text to gleam publish, ensuring smoother automation for future releases.

Adds a command to pipe the required confirmation text to 'gleam publish' for versions below 1.0.0, enabling automated publishing in the release workflow.
Copilot AI review requested due to automatic review settings November 9, 2025 18:09
@lupodevelop lupodevelop merged commit 5e8c284 into main Nov 9, 2025
6 checks passed
@lupodevelop lupodevelop deleted the release/workflow branch November 9, 2025 18:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR appears to be preparing for a 1.0.0 release by updating the version number, but includes contradictory workflow changes that handle pre-1.0.0 version publishing.

  • Version bumped from 0.1.0 to 1.0.0 in gleam.toml
  • Release workflow modified to include logic for handling versions < 1.0.0

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
gleam.toml Version number updated to 1.0.0
.github/workflows/release.yml Added comments and piped input for publishing pre-1.0.0 versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +106 to +108
# For versions < 1.0.0, gleam publish requires explicit confirmation
# We pipe the required text to accept publishing 0.x versions
echo "I am not using semantic versioning" | gleam publish --yes
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment and piped input are intended for versions < 1.0.0, but the version in gleam.toml is being set to 1.0.0. This workflow change is unnecessary for 1.0.0 and later versions, as they follow semantic versioning and don't require the 'I am not using semantic versioning' confirmation. Either revert this workflow change or keep the version below 1.0.0.

Suggested change
# For versions < 1.0.0, gleam publish requires explicit confirmation
# We pipe the required text to accept publishing 0.x versions
echo "I am not using semantic versioning" | gleam publish --yes
gleam publish --yes

Copilot uses AI. Check for mistakes.
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.

2 participants