Skip to content

Commit 42d66d7

Browse files
author
Kent C. Dodds
authored
fix(travis): scope npx modules
So it doesn't break stuff unexpectedly
1 parent c35c663 commit 42d66d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/travis-after-success.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const {
88
} = require('../utils')
99

1010
console.log('installing and running travis-deploy-once')
11-
const deployOnceResults = spawn.sync('npx', ['travis-deploy-once'])
11+
const deployOnceResults = spawn.sync('npx', ['travis-deploy-once@4'])
1212
if (deployOnceResults.status === 0) {
1313
runAfterSuccessScripts()
1414
} else {
@@ -35,7 +35,7 @@ function runAfterSuccessScripts() {
3535
getConcurrentlyArgs(
3636
{
3737
codecov: reportCoverage
38-
? `echo installing codecov && npx -p codecov -c 'echo running codecov && codecov'`
38+
? `echo installing codecov && npx -p codecov@3 -c 'echo running codecov && codecov'`
3939
: null,
4040
release: autorelease
4141
? `echo installing semantic-release && npx -p semantic-release@15 -c 'echo running semantic-release && semantic-release'`

0 commit comments

Comments
 (0)