Skip to content

Commit fe7ed93

Browse files
committed
Fix yarn release-* commands
1 parent 85e04aa commit fe7ed93

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.5
2+
3+
- Fix `yarn release-*` commands
4+
15
## 1.0.4
26

37
- Update `yarn release-*` commands to be more robust

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
44
Author: Factor1 Studios
55
Author URI: https://factor1studios.com
66
Description: A custom WordPress theme for Mission Bit developed by Factor1
7-
Version: 1.0.3
7+
Version: 1.0.5
88
License: GPL-3.0
99
License URI:
1010
Text Domain:

util/versionUpdate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const updateVersion = (version, releaseType) => {
5353

5454
// first replace updates strings
5555
replace({
56-
regex: /^Version: .*$/,
56+
regex: /Version:[^\n]+/,
5757
replacement: `Version: ${newVersion}`,
5858
paths: ["./style.css"],
5959
silent: true
@@ -68,7 +68,7 @@ const updateVersion = (version, releaseType) => {
6868

6969
fs.writeFileSync(
7070
"./CHANGES.md",
71-
`## ${newVersion}\n\n${fs.readFileSync("./CHANGES.md", "utf8")}`,
71+
`## ${newVersion}\n\n- \n\n${fs.readFileSync("./CHANGES.md", "utf8")}`,
7272
{ encoding: "utf8" }
7373
);
7474
};

0 commit comments

Comments
 (0)