Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

chore: Release to npm [IS-3] #42

Merged
merged 2 commits into from
Mar 13, 2021
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
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ jobs:
root: .
paths: .

publish-release:
executor: node
steps:
- setup
- attach_workspace:
at: .
- run:
name: Publish npm package
command: yarn semantic-release

workflows:
test-and-publish:
jobs:
- lint-build
- publish-release:
filters:
branches:
only: master
requires:
- lint-build
60 changes: 60 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"branches": ["master"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "chore", "release": "patch" },
{ "type": "refactor", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "revert",
"section": "Reverts"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# Changelog"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "yarn.lock"],
"message": "chore(release): ${nextRelease.version}\n\n[skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kunalnagarco/imdb-scraper",
"version": "0.0.1",
"version": "0.0.0-development",
"description": "An attempt at the most complete IMDb API",
"keywords": [
"imdb",
Expand All @@ -15,7 +15,8 @@
"lint": "eslint --fix src/ tests/ --ext .js,.ts,.tsx --max-warnings 0",
"start": "tsc && node dist/index.js",
"build": "tsc",
"test": "ts-mocha -p tsconfig.json tests/**/*.spec.ts -t 150000"
"test": "ts-mocha -p tsconfig.json tests/**/*.spec.ts -t 150000",
"semantic-release": "semantic-release"
},
"husky": {
"hooks": {
Expand All @@ -42,6 +43,8 @@
"underscore": "1.9.1"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/cors": "^2.8.10",
"@types/express": "^4.17.11",
"@types/node-fetch": "^2.5.8",
Expand All @@ -60,11 +63,16 @@
"mocha": "^5.2.0",
"prettier": "^2.2.1",
"request": "^2.88.0",
"semantic-release": "^17.4.2",
"sort-package-json": "^1.40.0",
"ts-mocha": "^8.0.0",
"typescript": "^4.2.3"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/kunalnagarco/imdb-scraper.git"
}
}
Loading