Skip to content

Commit a6134cb

Browse files
authored
Merge pull request #2 from C-Mejlak/main
chore: rename GITHUB_TOKEN to GH_TOKEN
2 parents 8957f7d + 76c02cd commit a6134cb

File tree

7 files changed

+2
-35
lines changed

7 files changed

+2
-35
lines changed

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/post-merge

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
"scripts": {
3434
"build": "rollup -c rollup.config.js",
3535
"coverage": "vitest run --coverage",
36-
"postinstall": "husky install",
3736
"lint": "eslint --fix . --ext .js --ext .jsx --ext md --ext mdx",
38-
"prepare": "husky install",
3937
"prepublishOnly": "pinst --disable",
4038
"postpublish": "pinst --enable",
4139
"style": "prettier --write \"./**/*.{js,jsx,json}\"",
@@ -109,7 +107,6 @@
109107
"eslint-plugin-mdx": "^2.1.0",
110108
"eslint-plugin-react": "^7.32.2",
111109
"eslint-plugin-react-hooks": "^4.6.0",
112-
"husky": "^8.0.3",
113110
"jsdom": "^22.1.0",
114111
"lint-staged": "^13.2.2",
115112
"mdx-observable": "^0.2.0",

src/lib/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ async function getError(res, path) {
2222
}
2323

2424
async function getRawFileFromGitHub(path, options) {
25-
if (process.env.GITHUB_TOKEN) {
25+
if (process.env.GH_TOKEN) {
2626
options.headers = {
27-
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`
27+
Authorization: `Bearer ${process.env.GH_TOKEN}`
2828
}
2929
}
3030

0 commit comments

Comments
 (0)