Skip to content

Commit

Permalink
added release chores
Browse files Browse the repository at this point in the history
  • Loading branch information
skwee357 committed Mar 12, 2023
1 parent cd4f83d commit 395eb7c
Show file tree
Hide file tree
Showing 6 changed files with 2,296 additions and 29 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
---
name: Lint Code Base

on:
push:
branches-ignore: [master, main]
pull_request:
branches: [master, main]

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
env:
Expand All @@ -26,3 +21,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc.js
- name: Build
uses: actions/setup-node@v3
- run: yarn
- run: yarn build --noEmit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
lib/

.env

node_modules/

npm-debug.log*
Expand Down
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.eslint*
.prettier*
tsconfig.json
.github
src
.env
release-it.json
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@
"scripts": {
"build": "tsc",
"lint": "eslint src",
"prettier": "prettier src --check"
"prettier": "prettier src --check",
"release": "dotenv release-it"
},
"repository": {
"type": "git",
"url": "https://github.com/skwee357/switchdb"
},
"devDependencies": {
"@release-it/keep-a-changelog": "^3.1.0",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"dotenv-cli": "^7.1.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.7.0",
"prettier": "^2.8.4",
"release-it": "^15.8.0",
"ts-node": "^10.9.1",
"typescript": "*"
}
Expand Down
13 changes: 13 additions & 0 deletions release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"github": {
"release": true,
},
"npm": {
"publish": true
},
"plugins": {
"@release-it/keep-a-changelog": {
"filename": "CHANGELOG.md"
}
}
}
Loading

0 comments on commit 395eb7c

Please sign in to comment.