diff --git a/lib/dpl/providers/firebase.rb b/lib/dpl/providers/firebase.rb index 9bc11ff4d..e15c42aea 100644 --- a/lib/dpl/providers/firebase.rb +++ b/lib/dpl/providers/firebase.rb @@ -11,6 +11,8 @@ class Firebase < Provider npm 'firebase-tools@^6.3', 'firebase' + path 'node_modules/.bin' + env :firebase opt '--token TOKEN', 'Firebase CI access token (generate with firebase login:ci)', required: true, secret: true diff --git a/spec/dpl/providers/firebase_spec.rb b/spec/dpl/providers/firebase_spec.rb index 841a64845..5d13abf81 100644 --- a/spec/dpl/providers/firebase_spec.rb +++ b/spec/dpl/providers/firebase_spec.rb @@ -29,4 +29,8 @@ describe 'missing firebase.json' do it { expect { subject.run }.to raise_error 'Missing firebase.json' } end + + describe 'adds node_modules/.bin to $PATH' do + it { expect(ENV['PATH']).to include 'node_modules/.bin' } + end end