From dac74783d29705ddd6b60d74904de7dab0c74222 Mon Sep 17 00:00:00 2001 From: Thomas Boop <52323235+thboop@users.noreply.github.com> Date: Fri, 11 Sep 2020 07:18:17 -0400 Subject: [PATCH] Add --license flag to javascript-action (#56) --- .gitattributes | 1 + README.md | 2 ++ dist/licenses.txt | 11 +++++++++++ package.json | 4 ++-- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 100644 dist/licenses.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2e051e1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +dist/** -diff linguist-generated=true \ No newline at end of file diff --git a/README.md b/README.md index df1c931..76acbac 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ git commit -a -m "v1 release" git push origin v1 ``` +Note: We recommend using the `--license` option for ncc, which will create a license file for all of the production node modules used in your project. + Your action is now published! :rocket: See the [versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) diff --git a/dist/licenses.txt b/dist/licenses.txt new file mode 100644 index 0000000..e88ce8f --- /dev/null +++ b/dist/licenses.txt @@ -0,0 +1,11 @@ +@actions/core +MIT +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/package.json b/package.json index a656cd8..f0734f0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "lint": "eslint .", - "prepare": "ncc build index.js -o dist --source-map", + "prepare": "ncc build index.js -o dist --source-map --license licenses.txt", "test": "jest", "all": "npm run lint && npm run prepare && npm run test" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/actions/javascript-action#readme", "dependencies": { - "@actions/core": "^1.1.1" + "@actions/core": "^1.2.5" }, "devDependencies": { "@vercel/ncc": "^0.24.0",