diff --git a/.circleci/config.yml b/.circleci/config.yml index b676950..ee1c82d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,3 +35,9 @@ jobs: # run tests! - run: npm run test + + # build + - run: npm run build + + # release + - run: npx semantic-release diff --git a/package.json b/package.json index 7082abd..5e3591d 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "@commitlint/cli": "^8.1.0", "@commitlint/config-conventional": "^8.1.0", "@redux-saga/testing-utils": "1.0.2", + "@semantic-release/github": "^5.4.2", "husky": "^3.0.2", "patch-package": "^6.1.2", "postinstall-postinstall": "^2.0.0", diff --git a/src/.releaserc.json b/src/.releaserc.json new file mode 100644 index 0000000..5d6ea15 --- /dev/null +++ b/src/.releaserc.json @@ -0,0 +1,12 @@ +{ + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/github", + { + "assets": [{ "path": "build/**", "label": "Distribution" }] + } + ] + ] +}