Skip to content

Commit e598c96

Browse files
committed
ci: add patch/minor option for version bump
1 parent 445bf00 commit e598c96

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/create-wrapper-prs.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
required: false
1212
type: string
1313
description: The iOS SDK version to update to
14+
version_bump:
15+
type: choice
16+
default: patch
17+
description: Version bump type for wrapper SDKs
18+
options:
19+
- patch
20+
- minor
1421
cordova:
1522
type: boolean
1623
default: true
@@ -58,6 +65,11 @@ on:
5865
required: false
5966
default: true
6067
description: Update Unity SDK
68+
version_bump:
69+
type: string
70+
required: false
71+
default: patch
72+
description: Version bump type for wrapper SDKs (patch or minor)
6173
secrets:
6274
GH_PUSH_TOKEN:
6375
required: false
@@ -122,7 +134,7 @@ jobs:
122134
123135
# Get latest stable version (exclude pre-releases)
124136
LATEST_VERSION=$(gh release list --repo "$REPO" --limit 20 --json tagName,isPrerelease | jq -r '.[] | select(.isPrerelease == false) | .tagName' | head -1 || echo "")
125-
NEW_VERSION=$(semver "$LATEST_VERSION" -i patch)
137+
NEW_VERSION=$(semver "$LATEST_VERSION" -i "${{ inputs.version_bump || 'patch' }}")
126138
echo "$SDK=$NEW_VERSION" >> $GITHUB_OUTPUT
127139
done
128140
env:

.github/workflows/publish-npm-github.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ jobs:
4747
bun run build
4848
4949
# Can't use Bun yet for publishing to NPM via OIDC, so we use Node.js
50-
- name: Setup Node.js
51-
uses: actions/setup-node@v5
52-
with:
53-
node-version: "24"
54-
registry-url: "https://registry.npmjs.org"
55-
5650
# for publishing
5751
- name: Setup Node
5852
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)