Skip to content

Commit 4637e34

Browse files
committed
build: enable semantic release on all branches
This commit changes the travis release script to release on all branches. It also changes the replace plugin to a regex instead of a string, which is more reliable and matches the release plugin's docs more closely. It also fixes an issue where the replacement files directory was missing the `js` subdirectory.
1 parent 7182375 commit 4637e34

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ deploy:
2727
script:
2828
- npx semantic-release
2929
on:
30-
branch: next
30+
all_branches: true

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@
113113
"replacements": [
114114
{
115115
"files": [
116-
"src/Luminous.js"
116+
"src/js/Luminous.js"
117117
],
118-
"from": "this.VERSION = '.*'",
119-
"to": "this.VERSION = '${nextRelease.version}'",
118+
"from": "this.VERSION = \".*\"",
119+
"to": "this.VERSION = \"${nextRelease.version}\"",
120120
"results": [
121121
{
122-
"file": "src/Luminous.js",
122+
"file": "src/js/Luminous.js",
123123
"hasChanged": true,
124124
"numMatches": 1,
125125
"numReplacements": 1

0 commit comments

Comments
 (0)