Skip to content

Commit

Permalink
chore(ci): fix release process (#73)
Browse files Browse the repository at this point in the history
semantic-release's --branch flag got renamed to --branches
and it seems like we no longer need to do the mirror clone of the repo
  • Loading branch information
gurpreetatwal authored Jul 22, 2022
1 parent 2e9a93c commit fcabfc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
- npm test
- npm run cover
- bash <(curl -s https://codecov.io/bash)
- git clone --mirror https://github.com/smartcar/javascript-sdk.git
- npx semantic-release --branch "$TRAVIS_BRANCH" --extends ./build/sr-configs/verify.js --repository-url ./javascript-sdk.git
- npx semantic-release --branches "$TRAVIS_BRANCH" --extends ./build/sr-configs/verify.js
- stage: publish
node_js: '16'
if: branch = master
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cover": "npm test -- --coverage",
"readme": "gulp template:readme",
"jsdoc": "jsdoc2md --example-lang js --template doc/.template.hbs --files src/sdk.js | sed 's/[ \t]*$//' > doc/README.md",
"prepare-release": "semantic-release --branch \"$(git rev-parse --abbrev-ref HEAD)\" --extends ./build/sr-configs/local.js"
"prepare-release": "semantic-release --branches \"$(git rev-parse --abbrev-ref HEAD)\" --extends ./build/sr-configs/local.js"
},
"devDependencies": {
"@babel/core": "^7.18.2",
Expand Down

0 comments on commit fcabfc0

Please sign in to comment.