Skip to content

Commit 329b57a

Browse files
committed
feat: configs to publish on github npm registry
1 parent 191f73c commit 329b57a

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

ENV_SAMPLE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REPO_OWNER="Git-Commit-Show"
2+
GITHUB_PERSONAL_TOKEN="ghp_adsfdsf32sdfasdfcdcsdfsdf23sfasdf1"

contributors.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55

66
const https = require('https');
77

8-
//INPUTS
9-
const REPO_OWNER = "Git-Commit-Show";//Change this to the repo that you
10-
const GITHUB_PERSONAL_TOKEN = "";//When used, it will increase the API limits from 60 to 5000/hr
11-
//End of inputs
8+
// INPUTS
9+
// Mandatory: Repo owner that you want to analyze
10+
const REPO_OWNER = process.env.REPO_OWNER;
11+
// Optional: Authentication using github token. When used, it will increase the API limits from 60 to 5000/hr
12+
const GITHUB_PERSONAL_TOKEN = process.env.GITHUB_PERSONAL_TOKEN;
13+
// END OF INPUTS
1214

1315
const GITHUB_REQUEST_OPTIONS = {
1416
headers: {

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "github-contributors",
3+
"version": "1.0.0",
4+
"description": "Analyze and archive GitHub repo contributors",
5+
"main": "contributors.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/gitcommitshow/github-contributors.git"
12+
},
13+
"keywords": [
14+
"opensource-analytics",
15+
"github-contributions",
16+
"opensource-analytics",
17+
"opensource-management",
18+
"community-management",
19+
"community-recognition",
20+
"recognition",
21+
"contributors",
22+
"contributions"
23+
],
24+
"author": "gitcommitshow",
25+
"license": "MIT",
26+
"bugs": {
27+
"url": "https://github.com/gitcommitshow/github-contributors/issues"
28+
},
29+
"homepage": "https://github.com/gitcommitshow/github-contributors#readme",
30+
"publishConfig": {
31+
"registry": "https://npm.pkg.github.com"
32+
}
33+
}

0 commit comments

Comments
 (0)