Skip to content

Commit

Permalink
fix: remove limited license plugin (#8)
Browse files Browse the repository at this point in the history
closes #7
  • Loading branch information
0-vortex committed Mar 12, 2022
1 parent 0e81ab8 commit fc06582
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 26 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ This shareable configuration use the following plugins:
- [`conventional-changelog-conventionalcommits`](https://github.com/conventional-changelog/conventional-changelog)
- [`@semantic-release/npm`](https://github.com/semantic-release/npm)
- [`@google/semantic-release-replace-plugin`](https://github.com/google/semantic-release-replace-plugin)
- [`semantic-release-license`](https://github.com/cbhq/semantic-release-license)
- [`@semantic-release/git`](https://github.com/semantic-release/git)
- [`@semantic-release/github`](https://github.com/semantic-release/github)
- [`@eclass/semantic-release-docker`](https://github.com/eclass/semantic-release-docker)
Expand Down
8 changes: 1 addition & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
"eclass-docker-fork": "^1.3.1",
"execa": "^5.1.1",
"npmlog": "^6.0.1",
"semantic-release": "^19.0.2",
"semantic-release-license": "^1.0.3"
"semantic-release": ">=19.0.0"
},
"devDependencies": {
"@open-sauced/check-engines": "^1.2.0",
Expand Down
17 changes: 1 addition & 16 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { existsSync } = require("fs");
const { sync, commandSync } = require("execa");
const { resolve } = require("path");
const { sync } = require("execa");
const log = require("npmlog");

const plugins = [];
Expand Down Expand Up @@ -123,20 +122,6 @@ if (actionExists) {
});
}

try {
const {stdout} = commandSync("ls -A1 LICENSE*", {
shell: true,
});

addPlugin("semantic-release-license", {
license: {
path: resolve(stdout)
}
});
} catch (e) {
log.error(`Unable to run detect license command`, e);
}

addPlugin("@semantic-release/git", {
"assets": [
"LICENSE*",
Expand Down

0 comments on commit fc06582

Please sign in to comment.