diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 83fa8a7..0f06d0e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,4 +1,4 @@ -name: Publish to NPM +name: Publish on: release: types: [created] @@ -13,7 +13,7 @@ jobs: with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' - scope: '@thundernetworkrad' + scope: '' - name: Publish package on NPM 📦 run: npm publish --access public env: @@ -38,3 +38,21 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.GP_TOKEN }} REGISTRY1: 'npm.pkg.github.com' REGISTRY2: '@thundernetworkrad:registry=https://npm.pkg.github.com' + + Publish-SOURCE: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://source.thundernetwork.org/api/packages/ThunderNetworkRaD/npm/' + scope: '@thundernetworkrad' + - name: Publish package on NPM 📦 + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.SP_TOKEN }} + REGISTRY1: 'https://source.thundernetwork.org/api/packages/ThunderNetworkRaD/npm/' + REGISTRY2: '@thundernetworkrad:registry=https://source.thundernetwork.org/api/packages/ThunderNetworkRaD/npm/' \ No newline at end of file diff --git a/package.json b/package.json index cb660ca..64b9136 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "@thundernetworkrad/template-npm-packages", + "name": "tn-api.js", "version": "0.0.1", "description": "A Public Template for npm", "main": "index.js", - "repository": "https://github.com/ThunderNetworkRaD/template-npm-packages", + "repository": "https://source.thundernetwork.org/ThunderNetworkRaD/tn-api.js", "author": "ThunderNetworkRaD | Killer Boss Original", "license": "Mozilla Public License 2.0", "private": false