From a0fac2ac157d28ce8a84b696297fb00c9338f053 Mon Sep 17 00:00:00 2001 From: fewensa Date: Wed, 17 Jul 2024 07:04:57 +0000 Subject: [PATCH] Setup token --- .github/workflows/publish.yml | 7 +++++-- template/ts/files/LICENSE | 20 ++++++++++++++++++++ template/ts/files/package.json | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 template/ts/files/LICENSE diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f49140..b0e8e34 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,9 +25,12 @@ jobs: - name: Build template run: npm run build:ts - - name: Publish ts + - name: Setup npm token + run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Publish ts run: | cd generated/typescript npm run release diff --git a/template/ts/files/LICENSE b/template/ts/files/LICENSE new file mode 100644 index 0000000..46737c3 --- /dev/null +++ b/template/ts/files/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2012-2024 Scott Chacon and others + +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/template/ts/files/package.json b/template/ts/files/package.json index d992c49..f07d6d4 100644 --- a/template/ts/files/package.json +++ b/template/ts/files/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "rm -rf dist && tsc", "test": "jest", - "release": "lerna publish from-package --yes --no-verify-access" + "release": "lerna publish from-package --yes --no-private --no-verify-access" }, "author": "HelixBridge", "license": "MIT",