From a1009e88e8a120a53d9f6e322cf6ee57b3d81fd8 Mon Sep 17 00:00:00 2001 From: Jason Staten Date: Sun, 3 Nov 2019 22:14:09 -0700 Subject: [PATCH] chore(release): semantic-release --- .build.yml | 6 +++++- package.json | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.build.yml b/.build.yml index 5786273..aaf9152 100644 --- a/.build.yml +++ b/.build.yml @@ -4,6 +4,9 @@ packages: - yarn sources: - https://git.sr.ht/~statianzo/angularjs-testing-library +secrets: + - 5756e542-1a3e-4c27-ac4c-4820cff2b965 + - cb7614c0-83c9-405d-97f0-9623a133bdd9 tasks: - setup: | sudo n stable @@ -13,5 +16,6 @@ tasks: cd angularjs-testing-library yarn validate - publish: | + . ~/.npm-token cd angularjs-testing-library - yarn run kcd-scripts travis-after-success + yarn semantic-release diff --git a/package.json b/package.json index 0203d26..d27acac 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "test": "kcd-scripts test", "test:update": "npm test -- --updateSnapshot --coverage", "validate": "kcd-scripts validate", - "setup": "npm install && npm run validate -s", - "semantic-release": "semantic-release" + "setup": "npm install && npm run validate -s" }, "husky": { "hooks": { @@ -50,6 +49,7 @@ "@testing-library/dom": "^6.3.0" }, "devDependencies": { + "@semantic-release/git": "^7.0.17", "@testing-library/jest-dom": "^4.1.0", "angular": "^1.7.8", "angular-mocks": "^1.7.8", @@ -80,5 +80,14 @@ "type": "git", "url": "https://git.sr.ht/~statianzo/angularjs-testing-library" }, - "homepage": "https://git.sr.ht/~statianzo/angularjs-testing-library" + "homepage": "https://git.sr.ht/~statianzo/angularjs-testing-library", + "release": { + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/npm", + "@semantic-release/git" + ], + "repositoryUrl": "git@git.sr.ht:~statianzo/angularjs-testing-library" + } }