Skip to content

Commit 948fab5

Browse files
author
uid10804
committed
ci(travis): update publish scripts to fix detached head issue
1 parent 91e808e commit 948fab5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
if: branch = feat/add-cli
3232
before_script:
3333
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
34+
- git remote add pub https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
35+
- git fetch pub feat/add-cli
36+
- git checkout feat/add-cli
3437
script:
3538
- make fake-credentials
3639
- git checkout feat/add-cli

0 commit comments

Comments
 (0)