Skip to content

Commit f867d45

Browse files
committed
build: enable semantic release in all branches
This commit changes the semantic-release replace plugin replace text from a string to a regex. This is more reliable when trying to find the string in the code base to replace and inline with what's reccomended by the plugin authors. It also fixes the files directory, which was missing the `js` sub directory. The commit also changes the travil deploy script to target all branches.
1 parent 547b8ea commit f867d45

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ deploy:
2222
script:
2323
- npx semantic-release
2424
on:
25-
branch: next
25+
all_branches: true

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@
125125
"replacements": [
126126
{
127127
"files": [
128-
"src/Drift.js"
128+
"src/js/Drift.js"
129129
],
130-
"from": "this.VERSION = '.*'",
131-
"to": "this.VERSION = '${nextRelease.version}'",
130+
"from": "this.VERSION = \".*\"",
131+
"to": "this.VERSION = \"${nextRelease.version}\"",
132132
"results": [
133133
{
134-
"file": "src/Drift.js",
134+
"file": "src/js/Drift.js",
135135
"hasChanged": true,
136136
"numMatches": 1,
137137
"numReplacements": 1

0 commit comments

Comments
 (0)