feat: introduce semantic release support - #4
Conversation
- 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>
|
👋 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 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>
There was a problem hiding this comment.
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.jsonwith semantic-release and its plugins as dev dependencies and areleasescript. - Add
.releasercto configure branches, plugins, and apreparehook that bumpsMARKETING_VERSIONinProject.swiftvia a shell script. - Add
scripts/bump-version.shand a GitHub Actionsrelease.ymlworkflow to run semantic-release on pushes tomaster.
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.
|
|
||
| echo "Bumping version to $NEW_VERSION in Project.swift" | ||
|
|
||
| perl -pi -e "s/\"MARKETING_VERSION\": \".*\"/\"MARKETING_VERSION\": \"$NEW_VERSION\"/" Project.swift |
There was a problem hiding this comment.
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.
| 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 |
- 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>
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Introduces Semantic Release to automate version management and releases.
Changes:
package.json: Added to manage semantic-release dependencies..releaserc: Configuration for semantic-release, including plugins for commit analysis, release notes, and git/github integration.scripts/bump-version.sh: A script to update theMARKETING_VERSIONinProject.swift(the source of truth for the Tuist project version)..github/workflows/release.yml: A new GitHub Actions workflow that runs semantic-release on pushes tomaster.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 tomaster.PR created automatically by Jules for task 5551712971798429429 started by @RbBtSn0w