Skip to content

Commit 3bc4b87

Browse files
committed
Add ruby-version to publish workflow
The ruby/setup-ruby action needs a version of Ruby specified to work. Previously it was reading the `.ruby-version` file, however we removed that in commit 2aa58cc. We could restore that file, but because `ruby-install` doesn't support loose version specifiers, we'd have to keep it maintained. Instead we just tell the action to install the latest version of Ruby 3.
1 parent ac1d5b6 commit 3bc4b87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: actions/checkout@v3
2020

2121
- uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: '3'
2224

2325
- name: Check if new version to release
2426
id: gem_version
@@ -53,6 +55,7 @@ jobs:
5355

5456
- uses: ruby/setup-ruby@v1
5557
with:
58+
ruby-version: '3'
5659
bundler-cache: true
5760

5861
- name: Publish

0 commit comments

Comments
 (0)