Skip to content

Commit

Permalink
Try using the gem post_install hook to avoid issue with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Oct 13, 2023
1 parent 6640afc commit ed90c55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flipper-expressions-schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Gem::Specification.new do |gem|

# Ensure schemas are downloaded when installed as a git dependency.
# This will be handled by rake when the gem is built and published.
unless File.exist?(SCHEMAS_DIR)
warn "Getting schemas from @flippercloud.io/expressions..."
Dir.chdir(__dir__) { exec "npm install --silent" }
Gem.post_install do
unless File.exist?(SCHEMAS_DIR)
warn "Getting schemas from @flippercloud.io/expressions..."
Dir.chdir(__dir__) { exec "npm install --silent" }
end
end

gem.authors = ['John Nunemaker']
Expand Down

0 comments on commit ed90c55

Please sign in to comment.