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
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Initialize development environment
run: npm install

- name: Run CI check
run: npm run check
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.gitignore
.npmignore

.github

src

.eslintrc.js
Expand All @@ -9,4 +11,4 @@ rollup.config.js
pull_request_template.md

CODE_OF_CONDUCT.md
SECURITY.md
SECURITY.md
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![CI](https://github.com/veghdev/write-npmstat/workflows/CI/badge.svg?branch=main)](https://github.com/veghdev/write-npmstat/actions/workflows/ci.yml)


# About The Project

write-npmstat makes it easy to collect, filter and save npm statistics to csv files.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
"prettier": "prettier -w ./*js ./src/*js",
"eslint": "eslint --fix ./*js ./src/*js",
"format": "npm-run-all prettier eslint",
"rollup": "rollup -c",
"check-prettier": "prettier -c ./*js ./src/*js",
"check-eslint": "eslint ./*js ./src/*js",
"check": "npm-run-all check-prettier check-eslint"
"check-format": "npm-run-all check-prettier check-eslint",
"check": "npm-run-all check-format",
"rollup": "rollup -c"
},
"repository": {
"type": "git",
Expand Down