Skip to content

Commit 1e3d8d8

Browse files
committed
chore(github): add GitHub releated files
1 parent e30f2f9 commit 1e3d8d8

File tree

8 files changed

+266
-99
lines changed

8 files changed

+266
-99
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: 'gregoranders'
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: 'gregoranders'
7+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: 'gregoranders'
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'
7+
labels:
8+
- 'npm dependencies'
9+
commit-message:
10+
prefix: 'npm'
11+
assignees:
12+
- 'gregoranders'
13+
target-branch: 'development'

.github/workflows/development.yml

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,52 @@ on:
77

88
jobs:
99
build:
10-
1110
runs-on: ${{ matrix.os }}
1211

1312
strategy:
1413
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
node-version: [12.x, 13.x]
14+
os: [ubuntu-latest]
15+
node-version: [14.x]
1716

1817
steps:
19-
- uses: actions/checkout@v1
20-
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
- name: nodejs project info
25-
id: projectinfo
26-
uses: gregoranders/nodejs-project-info@master
27-
env:
28-
CI: true
29-
- name: npm install
30-
run: |
31-
npm install
32-
env:
33-
CI: true
34-
- name: npm run build
35-
run: |
36-
npm run build
37-
env:
38-
CI: true
39-
- name: npm test
40-
run: |
41-
npm test
42-
env:
43-
CI: true
44-
- name: code coverage
45-
uses: coverallsapp/github-action@master
46-
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
48-
path-to-lcov: ./coverage/lcov.info
49-
env:
50-
CI: true
51-
- name: publish code coverage to code climate
52-
if: matrix.os == 'ubuntu-latest'
53-
uses: paambaati/codeclimate-action@v2.3.0
54-
env:
55-
CI: true
56-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
57-
with:
58-
coverageCommand: npm run test
59-
debug: true
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: nodejs project info
24+
id: projectinfo
25+
uses: gregoranders/nodejs-project-info@master
26+
env:
27+
CI: true
28+
- name: npm install
29+
run: |
30+
npm install
31+
env:
32+
CI: true
33+
- name: npm run build
34+
run: |
35+
npm run build
36+
env:
37+
CI: true
38+
- name: npm test
39+
run: |
40+
npm test
41+
env:
42+
CI: true
43+
- name: code coverage
44+
uses: coverallsapp/github-action@master
45+
with:
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
path-to-lcov: ./coverage/lcov.info
48+
env:
49+
CI: true
50+
- name: publish code coverage to code climate
51+
if: matrix.os == 'ubuntu-latest'
52+
uses: paambaati/codeclimate-action@v2.3.0
53+
env:
54+
CI: true
55+
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
56+
with:
57+
coverageCommand: npm run test
58+
debug: true

.github/workflows/master.yml

Lines changed: 54 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,64 +7,63 @@ on:
77

88
jobs:
99
build:
10-
1110
runs-on: ${{ matrix.os }}
1211

1312
strategy:
1413
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
node-version: [12.x, 13.x]
14+
os: [ubuntu-latest]
15+
node-version: [14.x]
1716

1817
steps:
19-
- uses: actions/checkout@v1
20-
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
- name: nodejs project info
25-
id: projectinfo
26-
uses: gregoranders/nodejs-project-info@master
27-
env:
28-
CI: true
29-
- name: npm install
30-
run: |
31-
npm install
32-
env:
33-
CI: true
34-
- name: npm run build
35-
run: |
36-
npm run build
37-
env:
38-
CI: true
39-
- name: npm test
40-
run: |
41-
npm test
42-
env:
43-
CI: true
44-
- name: code coverage
45-
uses: coverallsapp/github-action@master
46-
with:
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
48-
path-to-lcov: ./coverage/lcov.info
49-
env:
50-
CI: true
51-
- name: publish code coverage to code climate
52-
if: matrix.os == 'ubuntu-latest'
53-
uses: paambaati/codeclimate-action@v2.3.0
54-
env:
55-
CI: true
56-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
57-
with:
58-
coverageCommand: npm run test
59-
debug: true
60-
- name: create release
61-
id: createrelease
62-
uses: gregoranders/nodejs-create-release@master
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
with:
66-
tag: v${{ steps.projectinfo.outputs.version }}
67-
name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}
68-
body: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release
69-
draft: false
70-
target: ${{ github.ref }}
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: nodejs project info
24+
id: projectinfo
25+
uses: gregoranders/nodejs-project-info@master
26+
env:
27+
CI: true
28+
- name: npm install
29+
run: |
30+
npm install
31+
env:
32+
CI: true
33+
- name: npm run build
34+
run: |
35+
npm run build
36+
env:
37+
CI: true
38+
- name: npm test
39+
run: |
40+
npm test
41+
env:
42+
CI: true
43+
- name: code coverage
44+
uses: coverallsapp/github-action@master
45+
with:
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
path-to-lcov: ./coverage/lcov.info
48+
env:
49+
CI: true
50+
- name: publish code coverage to code climate
51+
if: matrix.os == 'ubuntu-latest'
52+
uses: paambaati/codeclimate-action@v2.3.0
53+
env:
54+
CI: true
55+
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
56+
with:
57+
coverageCommand: npm run test
58+
debug: true
59+
- name: create release
60+
id: createrelease
61+
uses: gregoranders/nodejs-create-release@master
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
tag: v${{ steps.projectinfo.outputs.version }}
66+
name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}
67+
body: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release
68+
draft: false
69+
target: ${{ github.ref }}

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at gregor.anders@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
6+
| Version | Supported |
7+
| ------- | ------------------ |
8+
| 0.0.7 | :white_check_mark: |
9+
| 0.0.6 | :x: |
10+
11+
12+
## Reporting a Vulnerability
13+
14+
[Create Issue](https://github.com/gregoranders/nodejs-project-info/issues/new?labels=bug&template=bug_report.md&title=Security+Issue)

0 commit comments

Comments
 (0)