-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: introduce semantic release and upgrade packages (#114)
- Loading branch information
1 parent
d04313c
commit dd6eba5
Showing
17 changed files
with
5,242 additions
and
1,575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
node_modules/ | ||
dist | ||
dist | ||
coverage | ||
jest.config.js | ||
commitlint.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Lint Commit Messages | ||
on: [pull_request] | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [10, 12] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: node --version | ||
- run: yarn install | ||
- run: yarn lint | ||
- run: yarn test:ci | ||
- run: yarn compile | ||
release: | ||
name: Release | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: yarn semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Test | ||
on: [pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node: [10, 12] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: node --version | ||
- run: yarn install | ||
- run: yarn lint | ||
- run: yarn test:ci | ||
- run: yarn compile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"name": "@develohpanda/fluent-builder", | ||
"version": "2.0.2", | ||
"version": "0.0.0-development", | ||
"description": "A typed, fluent builder for creating objects in Typescript", | ||
"repository": "https://github.com/develohpanda/fluent-builder", | ||
"author": "Opender Singh <[email protected]>", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"types": "src/index.d.ts", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"src" | ||
"dist" | ||
], | ||
"keywords": [ | ||
"typescript", | ||
|
@@ -20,45 +20,46 @@ | |
"test": "jest", | ||
"test:cover": "jest --coverage", | ||
"test:watch": "jest --watch", | ||
"test:ci": "jest --ci --reporters=jest-junit --coverage --coverageReporters=cobertura", | ||
"compile": "tsc", | ||
"lint": "eslint {src,test}/**/* --ext .{{t,j}s{,x}}", | ||
"test:ci": "jest --ci --coverage", | ||
"compile": "tsc -p tsconfig.build.json", | ||
"lint": "eslint **/*.{t,j}s", | ||
"lint:fix": "yarn lint --fix", | ||
"local-pack": "rimraf ./*.tgz && yarn lint && yarn compile && yarn pack" | ||
"semantic-release": "semantic-release" | ||
}, | ||
"lint-staged": { | ||
"*.{{t,j}s{,x}}": [ | ||
"eslint --fix", | ||
"git add" | ||
"*.{{t,j}s}": [ | ||
"eslint --fix" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
"pre-commit": "lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.8", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@types/jest": "26.0.14", | ||
"@types/prop-types": "^15.7.3", | ||
"@typescript-eslint/eslint-plugin": "1.13.0", | ||
"@typescript-eslint/parser": "1.13.0", | ||
"eslint": "^5.0.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-jest": "23.20.0", | ||
"eslint-plugin-prettier": "3.1.2", | ||
"@typescript-eslint/eslint-plugin": "4.4.0", | ||
"@typescript-eslint/parser": "4.4.0", | ||
"eslint": "^7.11.0", | ||
"eslint-config-prettier": "6.12.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-jest": "24.1.0", | ||
"eslint-plugin-prettier": "3.1.4", | ||
"eslint-plugin-simple-import-sort": "5.0.3", | ||
"husky": "4.2.5", | ||
"jest": "24.9.0", | ||
"jest-junit": "^10.0.0", | ||
"lint-staged": "8.2.1", | ||
"prettier": "1.19.1", | ||
"husky": "4.3.0", | ||
"jest": "26.5.2", | ||
"lint-staged": "10.4.0", | ||
"prettier": "2.1.2", | ||
"prop-types": "15.7.2", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "24.3.0", | ||
"typescript": "^3.5.3" | ||
"semantic-release": "^17.1.2", | ||
"ts-jest": "26.4.1", | ||
"typescript": "4.0.3" | ||
}, | ||
"peerDependencies": { | ||
"prop-types": ">=15.7.2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.