try
This commit is contained in:
parent
8c2c34b533
commit
c384c57e63
2 changed files with 22 additions and 4 deletions
22
.github/workflows/npm-publish.yml
vendored
22
.github/workflows/npm-publish.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Publish to NPM
|
name: Publish
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
@ -13,7 +13,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
scope: '@thundernetworkrad'
|
scope: ''
|
||||||
- name: Publish package on NPM 📦
|
- name: Publish package on NPM 📦
|
||||||
run: npm publish --access public
|
run: npm publish --access public
|
||||||
env:
|
env:
|
||||||
|
@ -38,3 +38,21 @@ jobs:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GP_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.GP_TOKEN }}
|
||||||
REGISTRY1: 'npm.pkg.github.com'
|
REGISTRY1: 'npm.pkg.github.com'
|
||||||
REGISTRY2: '@thundernetworkrad:registry=https://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/'
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "@thundernetworkrad/template-npm-packages",
|
"name": "tn-api.js",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "A Public Template for npm",
|
"description": "A Public Template for npm",
|
||||||
"main": "index.js",
|
"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",
|
"author": "ThunderNetworkRaD | Killer Boss Original",
|
||||||
"license": "Mozilla Public License 2.0",
|
"license": "Mozilla Public License 2.0",
|
||||||
"private": false
|
"private": false
|
||||||
|
|
Loading…
Reference in a new issue