Skip to content

Commit 7cfe1b2

Browse files
authored
remove hardcoded ruby version from gh action (#325)
* remove hardcoded ruby version from gh action * add semver to dev deps * install deps * close quotes for commit message
1 parent 2b28d6a commit 7cfe1b2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
node-version: '22.14.0'
2828

29-
- name: 📦 Enable Corepack and install semver
29+
- name: 📦 Enable Corepack and install dependencies
3030
run: |
3131
corepack enable
32-
npm install -g semver@7.7.2
32+
yarn install --immutable
3333
3434
- name: 🔍 Get current dependency versions
3535
id: current-versions
@@ -228,7 +228,6 @@ jobs:
228228
if: steps.update-analysis.outputs.overall_update_needed == 'true' && steps.pr-analysis.outputs.should_create_pr == 'true'
229229
uses: ruby/setup-ruby@v1
230230
with:
231-
ruby-version: '3.2'
232231
bundler-cache: true
233232

234233
- name: 🛠️ Create update branch
@@ -364,7 +363,7 @@ jobs:
364363
git commit -m "chore: update Intercom SDK dependencies (${{ steps.update-files.outputs.pr_title_parts }})
365364
366365
${{ steps.update-files.outputs.changes }}
367-
- Updated lockfiles and example projects
366+
- Updated lockfiles and example projects"
368367
369368
echo "🚀 Pushing branch: ${{ steps.create-branch.outputs.branch_name }}"
370369
git push origin "${{ steps.create-branch.outputs.branch_name }}"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"react": "18.2.0",
9999
"react-native": "^0.81.0",
100100
"react-native-builder-bob": "0.40.13",
101+
"semver": "^7.7.2",
101102
"typescript": "5.0.4"
102103
},
103104
"peerDependencies": {

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,7 @@ __metadata:
23032303
react: 18.2.0
23042304
react-native: ^0.81.0
23052305
react-native-builder-bob: 0.40.13
2306+
semver: ^7.7.2
23062307
typescript: 5.0.4
23072308
peerDependencies:
23082309
react: "*"

0 commit comments

Comments
 (0)