Skip to content

Commit

Permalink
Replace MY_NOTES_AUTHOR_EMAIL with github profile
Browse files Browse the repository at this point in the history
  • Loading branch information
penge committed Oct 27, 2021
1 parent 1538093 commit e081843
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
build:
runs-on: ubuntu-latest

env:
MY_NOTES_AUTHOR_EMAIL: [email protected]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
8 changes: 0 additions & 8 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
if (process.env.NODE_ENV === "production" && !process.env.MY_NOTES_AUTHOR_EMAIL) {
const BOLD = "\x1b[1m";
const RED = "\x1b[31m";
console.log(`${BOLD}${RED}MY_NOTES_AUTHOR_EMAIL is required in production!`);
process.exit(1);
}

require("esbuild").build({
entryPoints: [
"./src/background.ts",
Expand All @@ -16,7 +9,6 @@ require("esbuild").build({
bundle: true,
define: {
"process.env.LOG_LEVEL": '"ALL"',
"process.env.MY_NOTES_AUTHOR_EMAIL": process.env.MY_NOTES_AUTHOR_EMAIL ? `"${process.env.MY_NOTES_AUTHOR_EMAIL}"` : '"[email protected]"',
},
loader: {
".svg": "text",
Expand Down
2 changes: 1 addition & 1 deletion src/options/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Version = ({ version }: VersionProps): h.JSX.Element => (
<a href="https://github.com/penge/my-notes" target="_blank" class="space-left">Homepage</a>
<br />
<br />
<span>Created by <a href={`mailto:${process.env.MY_NOTES_AUTHOR_EMAIL}`}>Pavel Bucka</a></span>
<span>Created by <a href="https://github.com/penge" target="_blank">Pavel Bucka</a></span>
{" "}
(<a href="https://www.buymeacoffee.com/penge" target="_blank">Buy me a coffee</a>)
</div>
Expand Down

0 comments on commit e081843

Please sign in to comment.