Skip to content

Commit 937d795

Browse files
committed
CI: fix publish gem condition (#42)
1 parent e21ec2f commit 937d795

File tree

4 files changed

+19
-39
lines changed

4 files changed

+19
-39
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,4 @@ jobs:
3939
env:
4040
DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }}
4141
DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }}
42-
run: bundle exec rspec spec/integration
43-
44-
# in order to release use conventional commits
45-
# $ git commit --allow-empty -m "chore: release 1.0.0" -m "Release-As: 1.0.0" && git push
46-
# this will open a new PR with the changelog and bump the version
47-
# Release Please will assume that you are using Conventional Commit messages.
48-
#
49-
# The most important prefixes you should have in mind are:
50-
#
51-
# fix: which represents bug fixes, and correlates to a SemVer patch.
52-
# feat: which represents a new feature, and correlates to a SemVer minor.
53-
# feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
54-
- uses: google-github-actions/release-please-action@v4
55-
id: release
56-
if: github.ref == 'refs/heads/main'
57-
42+
run: bundle exec rspec spec/integration

.github/workflows/publish-gem.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Ruby Gem
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
permissions:
88
contents: read
@@ -34,4 +34,3 @@ jobs:
3434
gem push *.gem
3535
env:
3636
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
37-
if: ${{ steps.release.outputs.release_created }}

Gemfile.lock

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
descope (1.0.4)
4+
descope (1.0.5)
55
addressable (~> 2.8)
66
jwt (~> 2.7)
77
rest-client (~> 2.1)
@@ -11,7 +11,7 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
activesupport (7.1.3)
14+
activesupport (7.1.3.2)
1515
base64
1616
bigdecimal
1717
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -26,38 +26,38 @@ GEM
2626
ast (2.4.2)
2727
attr_extras (7.1.0)
2828
base64 (0.2.0)
29-
bigdecimal (3.1.6)
29+
bigdecimal (3.1.7)
3030
concurrent-ruby (1.2.3)
3131
connection_pool (2.4.1)
32-
diff-lcs (1.5.0)
32+
diff-lcs (1.5.1)
3333
docile (1.4.0)
3434
domain_name (0.6.20240107)
35-
drb (2.2.0)
36-
ruby2_keywords
35+
drb (2.2.1)
3736
factory_bot (6.4.6)
3837
activesupport (>= 5.0.0)
39-
faker (2.23.0)
38+
faker (3.2.3)
4039
i18n (>= 1.8.11, < 2)
4140
fuubar (2.5.1)
4241
rspec-core (~> 3.0)
4342
ruby-progressbar (~> 1.4)
4443
http-accept (1.7.0)
4544
http-cookie (1.0.5)
4645
domain_name (~> 0.5)
47-
i18n (1.14.1)
46+
i18n (1.14.4)
4847
concurrent-ruby (~> 1.0)
4948
json (2.7.1)
50-
jwt (2.7.1)
49+
jwt (2.8.1)
50+
base64
5151
language_server-protocol (3.17.0.3)
5252
mime-types (3.5.2)
5353
mime-types-data (~> 3.2015)
54-
mime-types-data (3.2023.1205)
55-
minitest (5.21.2)
54+
mime-types-data (3.2024.0305)
55+
minitest (5.22.3)
5656
mutex_m (0.2.0)
5757
netrc (0.11.0)
5858
optimist (3.1.0)
5959
parallel (1.24.0)
60-
parser (3.3.0.4)
60+
parser (3.3.0.5)
6161
ast (~> 2.4.1)
6262
racc
6363
patience_diff (1.2.0)
@@ -90,7 +90,7 @@ GEM
9090
rspec-mocks (3.13.0)
9191
diff-lcs (>= 1.2.0, < 2.0)
9292
rspec-support (~> 3.13.0)
93-
rspec-support (3.13.0)
93+
rspec-support (3.13.1)
9494
rubocop (1.60.2)
9595
json (~> 2.3)
9696
language_server-protocol (>= 3.17.0)
@@ -102,15 +102,14 @@ GEM
102102
rubocop-ast (>= 1.30.0, < 2.0)
103103
ruby-progressbar (~> 1.7)
104104
unicode-display_width (>= 2.4.0, < 3.0)
105-
rubocop-ast (1.30.0)
106-
parser (>= 3.2.1.0)
105+
rubocop-ast (1.31.2)
106+
parser (>= 3.3.0.4)
107107
rubocop-rails (2.23.1)
108108
activesupport (>= 4.2.0)
109109
rack (>= 1.1)
110110
rubocop (>= 1.33.0, < 2.0)
111111
rubocop-ast (>= 1.30.0, < 2.0)
112112
ruby-progressbar (1.13.0)
113-
ruby2_keywords (0.0.5)
114113
rubyzip (2.3.2)
115114
selenium-webdriver (4.17.0)
116115
base64 (~> 0.2)
@@ -134,10 +133,7 @@ GEM
134133
zache (0.13.1)
135134

136135
PLATFORMS
137-
arm64-darwin-22
138136
arm64-darwin-23
139-
x86_64-darwin-23
140-
x86_64-linux
141137

142138
DEPENDENCIES
143139
bundler
@@ -157,4 +153,4 @@ DEPENDENCIES
157153
super_diff (= 0.11.0)
158154

159155
BUNDLED WITH
160-
2.4.19
156+
2.5.6

lib/descope/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# Current version of gem
44
module Descope
5-
VERSION = '1.0.4'
5+
VERSION = '1.0.5'
66
SDK_VERSION = '1.0.0'
77
end

0 commit comments

Comments
 (0)