Skip to content

Commit

Permalink
fix(tooling): fixed various issues with release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brandon Farrell committed Jun 4, 2021
1 parent 7eab994 commit 7893ce7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- main
jobs:
release:
name: Release
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

npm run pre-commit
npx tsc
git add .

5 changes: 5 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

{
"branches": ["master", "main", "next"]
}

10 changes: 6 additions & 4 deletions lib/SmartText.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,18 @@ var SmartText = function (_a) {
markdown = markdown.replace(/\*{1}(.*?)\*{1}/g, function (match, p1) { return "=S^t" + p1 + "S^t="; });
return markdown.split(/=/g).map(function (item, index) {
var text = item.replace(/(S\^t)/g, '');
/* tslint:disable */
// **Double** asterisk is bold
if (/(S\^t){2}(.*?)(S\^t){2}/.test(item)) {
return (React.createElement(LightText, { key: index, bold: true }, text));
return (
// @ts-ignore
React.createElement(LightText, { key: index, bold: true }, text));
// **single** asterisk is italic
}
else if (/(S\^t){1}(.*?)(S\^t){1}/.test(item)) {
return (React.createElement(LightText, { key: index, italic: true }, text));
return (
// @ts-ignore
React.createElement(LightText, { key: index, italic: true }, text));
}
/* tslint:enable */
return text;
});
}
Expand Down

0 comments on commit 7893ce7

Please sign in to comment.