From b2c391426ab5e5a71e21619b06b9641adb695e79 Mon Sep 17 00:00:00 2001 From: Morgan Touverey Quilling Date: Tue, 3 Sep 2019 00:26:33 +0200 Subject: [PATCH] chore(semantic-release): fix semantic-release npm publishing --- .releaserc.json | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..48bb8a8 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,10 @@ +{ + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + ["@semantic-release/npm", { + "pkgRoot": "dist/ngx-sweetalert2" + }], + ["@semantic-release/github"] + ] +} diff --git a/package.json b/package.json index d0d2698..4d05d49 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint:lib": "ng lint ngx-sweetalert2", "lint:demo": "ng lint ngx-sweetalert2-demo", "tmux:serve": "tmuxinator local", - "semantic-release": "cd dist/ngx-sweetalert2 && semantic-release; cd .." + "semantic-release": "semantic-release" }, "private": true, "dependencies": {