This repository was archived by the owner on Feb 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| nodejs 18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # NOTE: | ||
| # This script prepares a release by creating a `release-<version>` branch | ||
| # and updating package versions (root `package.json` and the | ||
| # `@fishjam-cloud/react-native-client` workspace). It does NOT commit or | ||
| # push the changes to the remote repository. Committing and pushing (and any | ||
| # additional CI/workflow steps) are expected to be handled by the caller or | ||
| # the surrounding release automation workflow that invokes this script. | ||
| # This will be called by the release workflow in @fishjam-cloud/release-automation. | ||
| # | ||
| # Usage: ./bump-version.sh <version> | ||
|
|
||
| VERSION="$1" | ||
|
|
||
| if [ -z "$VERSION" ]; then | ||
| echo "Usage: $0 <version>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Validate semantic version format (X.Y.Z) | ||
| if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "Error: Version must be in format X.Y.Z" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Create release branch | ||
| BRANCH_NAME="release-$VERSION" | ||
| git checkout -b "$BRANCH_NAME" | ||
|
|
||
| # Update root package.json | ||
| if [ -f package.json ]; then | ||
| echo "Enabling corepack..." | ||
| corepack enable | ||
ostatni5 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| corepack yarn install | ||
| corepack yarn version "$VERSION" | ||
| echo "Updated root package.json to $VERSION" | ||
| else | ||
| echo "Root package.json not found!" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Update react-native-client package | ||
| corepack yarn workspace @fishjam-cloud/react-native-client version "$VERSION" | ||
| echo "Updated react-native-client to $VERSION" | ||
|
|
||
| echo "✅ Version bump complete for $VERSION" | ||
| echo "BRANCH_NAME:$BRANCH_NAME" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.