Skip to content

Commit ed90c55

Browse files
committed
Try using the gem post_install hook to avoid issue with GitHub Actions
1 parent 6640afc commit ed90c55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flipper-expressions-schema.gemspec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ Gem::Specification.new do |gem|
77

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

1517
gem.authors = ['John Nunemaker']

0 commit comments

Comments
 (0)