Skip to content

Commit

Permalink
feat: integration with semantic release
Browse files Browse the repository at this point in the history
* Integrate with semantic-versioning for automatic releases

* Addressed code review comment

* git commit -m "Adding npm as part of semantic release config and cleaning up circleci publish config

Co-authored-by: skodamarthi <susmitha_kodamarthi@intuit.com>
  • Loading branch information
skodamarthi and skodamarthi authored Oct 31, 2020
1 parent 8170186 commit 4ea31f8
Show file tree
Hide file tree
Showing 5 changed files with 18,969 additions and 73 deletions.
8 changes: 1 addition & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ jobs:
steps:
- attach_workspace:
at: .
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- run: npm publish
- run: git config user.name $GITHUB_USERNAME && git config user.email $GITHUB_EMAIL
- run: npm version patch --force -m "[CI SKIP] Updating the package.json version"
- run: git push -q https://${GITHUB_PERSONAL_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git master
- run: npx semantic-release
workflows:
version: 2
build:
Expand Down
39 changes: 39 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Semantic Versioning Changelog"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare-release.sh ${nextRelease.version}"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/**"
}
]
}
]
]
}
Loading

0 comments on commit 4ea31f8

Please sign in to comment.