Skip to content

Commit 678ffa8

Browse files
committed
fix(release): fix the automatic release using the ci
1 parent 2662d46 commit 678ffa8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.releaserc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
[
77
'@semantic-release/exec',
88
{
9-
prepareCmd: 'sed -i \'\' \'s/"version": ".*"/"version": "${nextRelease.version}"/g\' package.json; sed -i \'\' \'s/VERSION = ".*"/VERSION = "${nextRelease.version}"/g\' lib/forest_liana/version.rb;',
9+
prepareCmd: 'sed -i \'s/"version": ".*"/"version": "${nextRelease.version}"/g\' package.json; sed -i \'s/VERSION = ".*"/VERSION = "${nextRelease.version}"/g\' lib/forest_liana/version.rb;',
1010
successCmd: 'touch .trigger-rubygem-release',
1111
},
1212
],

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ jobs:
2525
- RAILS_ENV=test bundle exec rake db:migrate && bundle exec rspec --color --format doc
2626
- stage: Build & Publish
2727
if: branch = master AND type != pull_request
28-
script: yarn && npx semantic-release
28+
language: node_js
29+
node_js: lts/*
30+
before_install:
31+
- nvm install lts/*
32+
- npm install
33+
script: npx semantic-release
2934
deploy:
3035
provider: rubygems
3136
api_key: $RUBYGEMS_TOKEN

0 commit comments

Comments
 (0)