Skip to content

feat: introduce semantic release support - #4

Merged
RbBtSn0w merged 4 commits into
masterfrom
feature/semantic-release-5551712971798429429
Feb 3, 2026
Merged

feat: introduce semantic release support#4
RbBtSn0w merged 4 commits into
masterfrom
feature/semantic-release-5551712971798429429

Conversation

@RbBtSn0w

@RbBtSn0w RbBtSn0w commented Feb 3, 2026

Copy link
Copy Markdown
Owner

Introduces Semantic Release to automate version management and releases.

Changes:

  1. package.json: Added to manage semantic-release dependencies.
  2. .releaserc: Configuration for semantic-release, including plugins for commit analysis, release notes, and git/github integration.
  3. scripts/bump-version.sh: A script to update the MARKETING_VERSION in Project.swift (the source of truth for the Tuist project version).
  4. .github/workflows/release.yml: A new GitHub Actions workflow that runs semantic-release on pushes to master.

This setup will automatically bump the version in Project.swift, create a git tag, generate release notes, and publish a GitHub release when changes are pushed to master.


PR created automatically by Jules for task 5551712971798429429 started by @RbBtSn0w

- Add `package.json` with semantic-release and plugins.
- Add `.releaserc` configuration.
- Add `scripts/bump-version.sh` to update `Project.swift`.
- Add `.github/workflows/release.yml` for automated releases.

Co-authored-by: RbBtSn0w <1135031+RbBtSn0w@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Add `package.json` with semantic-release and plugins.
- Add `.releaserc` configuration.
- Add `scripts/bump-version.sh` to update `Project.swift`.
- Add `.github/workflows/release.yml` for automated releases.

Co-authored-by: RbBtSn0w <1135031+RbBtSn0w@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

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 introduces semantic-release to automate versioning and GitHub releases, wiring it into the existing Tuist-based iOS project and CI setup.

Changes:

  • Add package.json with semantic-release and its plugins as dev dependencies and a release script.
  • Add .releaserc to configure branches, plugins, and a prepare hook that bumps MARKETING_VERSION in Project.swift via a shell script.
  • Add scripts/bump-version.sh and a GitHub Actions release.yml workflow to run semantic-release on pushes to master.

Reviewed changes

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

File Description
scripts/bump-version.sh Adds a script that updates the MARKETING_VERSION entry in Project.swift based on the semantic-release-provided version.
package.json Introduces local Node tooling for semantic-release and related plugins.
.releaserc Configures semantic-release behavior, including commit analysis, changelog generation, version bump script, git commits, and GitHub releases on the master branch.
.github/workflows/release.yml Defines a GitHub Actions workflow that installs Node deps and runs semantic-release on master pushes with appropriate permissions.

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

Comment thread scripts/bump-version.sh

echo "Bumping version to $NEW_VERSION in Project.swift"

perl -pi -e "s/\"MARKETING_VERSION\": \".*\"/\"MARKETING_VERSION\": \"$NEW_VERSION\"/" Project.swift

Copilot AI Feb 3, 2026

Copy link

Choose a reason for hiding this comment

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

The Perl substitution pattern here hard-codes the exact spacing and formatting of the MARKETING_VERSION line (e.g., it requires "MARKETING_VERSION": "..." with a single space after the colon). This makes the version bump fragile to any future reformatting of Project.swift (such as additional spaces, tabs, or different style), at which point the script will silently stop updating the version. Consider making the regex more whitespace-tolerant (e.g., using \s* around the colon and spaces) or using a more structured approach so minor formatting changes don’t break the bump script.

Suggested change
perl -pi -e "s/\"MARKETING_VERSION\": \".*\"/\"MARKETING_VERSION\": \"$NEW_VERSION\"/" Project.swift
perl -pi -e "s/\"MARKETING_VERSION\"\\s*:\\s*\".*\"/\"MARKETING_VERSION\": \"$NEW_VERSION\"/" Project.swift

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

checking

google-labs-jules Bot and others added 2 commits February 3, 2026 07:24
- Add `package.json` with semantic-release and plugins.
- Add `.releaserc` configuration.
- Add `scripts/bump-version.sh` to update `Project.swift`.
- Update `.github/workflows/ci.yml` to include release job.

Co-authored-by: RbBtSn0w <1135031+RbBtSn0w@users.noreply.github.com>
- Add `package.json` with semantic-release and plugins.
- Add `.releaserc` configuration.
- Add `scripts/bump-version.sh` to update `Project.swift`.
- Add `.github/workflows/release.yml` triggered by CI completion.
- Revert changes to `.github/workflows/ci.yml` (keep it focused on testing).

Co-authored-by: RbBtSn0w <1135031+RbBtSn0w@users.noreply.github.com>
@RbBtSn0w
RbBtSn0w marked this pull request as ready for review February 3, 2026 08:00
@RbBtSn0w
RbBtSn0w merged commit 176cc04 into master Feb 3, 2026
2 checks passed
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants