Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 0 additions & 142 deletions .all-contributorsrc

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
coverage/
package-lock.json
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ never done that before, that's great! Check this free short video tutorial to
learn how: http://kcd.im/pull-request
-->

- `kcd-scripts` version:
- `cod-scripts` version:
- `node` version:
- `npm` (or `yarn`) version:

Expand Down
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ merge of your pull request!

- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Ready to be merged
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->

<!-- feel free to add additional comments -->
20 changes: 20 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Commit Messages

on: pull_request

jobs:
commitlint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- run: npm install --no-save
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run:
npx commitlint --config="./src/config/commitlint.config.js" --from="origin/${{
github.base_ref }}" --to="origin/${{ github.head_ref }}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master

- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.ey.npme.io

- name: validate before release
run: |
npm install --no-save
npm run build
npm run lint
npm run test
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true

- name: semantic release
uses: codfish/semantic-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Validate Code

on: push

jobs:
validate:
runs-on: ubuntu-latest

strategy:
matrix:
node: [10.x, 11.x, 12.x]

steps:
- uses: actions/checkout@master

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.ey.npme.io

- name: install dependencies
run: npm install --no-save
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm run build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: lint js
run: npm run lint
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: run tests
run: npm run test
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=http://registry.npmjs.org/
package-lock=false
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# CHANGELOG

The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release).
You can see it on the [releases page](../../releases).
The changelog is automatically updated using
[semantic-release](https://github.com/semantic-release/semantic-release). You can see it on the
[releases page](../../releases).
Loading