diff --git a/.github/workflows/publish b/.github/workflows/publish new file mode 100644 index 0000000..e40769a --- /dev/null +++ b/.github/workflows/publish @@ -0,0 +1,20 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + scope: 'nhussain' + #- run: npm ci + - run: npm install + - run: node tools/scripts/publish.mjs @peaq-network/sdk 0.2.4 next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7b789bf..a47b2a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15677,7 +15677,7 @@ "@polkadot/api-augment": "10.4.1", "@polkadot/api-base": "10.4.1", "@polkadot/api-derive": "10.4.1", - "@polkadot/keyring": "12.0.1", + "@polkadot/keyring": "^12.0.1", "@polkadot/rpc-augment": "10.4.1", "@polkadot/rpc-core": "10.4.1", "@polkadot/rpc-provider": "10.4.1", @@ -15686,8 +15686,8 @@ "@polkadot/types-codec": "10.4.1", "@polkadot/types-create": "10.4.1", "@polkadot/types-known": "10.4.1", - "@polkadot/util": "12.0.1", - "@polkadot/util-crypto": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/util-crypto": "^12.0.1", "eventemitter3": "^5.0.0", "rxjs": "^7.8.0", "tslib": "^2.5.0" @@ -15713,7 +15713,7 @@ "@polkadot/types": "10.4.1", "@polkadot/types-augment": "10.4.1", "@polkadot/types-codec": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15724,7 +15724,7 @@ "requires": { "@polkadot/rpc-core": "10.4.1", "@polkadot/types": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "rxjs": "^7.8.0", "tslib": "^2.5.0" }, @@ -15750,8 +15750,8 @@ "@polkadot/rpc-core": "10.4.1", "@polkadot/types": "10.4.1", "@polkadot/types-codec": "10.4.1", - "@polkadot/util": "12.0.1", - "@polkadot/util-crypto": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/util-crypto": "^12.0.1", "rxjs": "^7.8.0", "tslib": "^2.5.0" }, @@ -15794,7 +15794,7 @@ "@polkadot/rpc-core": "10.4.1", "@polkadot/types": "10.4.1", "@polkadot/types-codec": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15806,7 +15806,7 @@ "@polkadot/rpc-augment": "10.4.1", "@polkadot/rpc-provider": "10.4.1", "@polkadot/types": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "rxjs": "^7.8.0", "tslib": "^2.5.0" }, @@ -15826,14 +15826,14 @@ "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-10.4.1.tgz", "integrity": "sha512-DwXs5dB1hp0P17I/Aqg+BnILQRMWlmMlABfSwwPprOh+16BBDw4P7bEuvaYw3gl/Zrxt4UhDcPl48jD+4j5OrQ==", "requires": { - "@polkadot/keyring": "12.0.1", + "@polkadot/keyring": "^12.0.1", "@polkadot/types": "10.4.1", "@polkadot/types-support": "10.4.1", - "@polkadot/util": "12.0.1", - "@polkadot/util-crypto": "12.0.1", - "@polkadot/x-fetch": "12.0.1", - "@polkadot/x-global": "12.0.1", - "@polkadot/x-ws": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/util-crypto": "^12.0.1", + "@polkadot/x-fetch": "^12.0.1", + "@polkadot/x-global": "^12.0.1", + "@polkadot/x-ws": "^12.0.1", "@substrate/connect": "0.7.24", "eventemitter3": "^5.0.0", "mock-socket": "^9.2.1", @@ -15856,9 +15856,9 @@ "@polkadot/types-codec": "10.4.1", "@polkadot/types-create": "10.4.1", "@polkadot/types-support": "10.4.1", - "@polkadot/util": "12.0.1", - "@polkadot/util-crypto": "12.0.1", - "@polkadot/x-ws": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/util-crypto": "^12.0.1", + "@polkadot/x-ws": "^12.0.1", "handlebars": "^4.7.7", "tslib": "^2.5.0", "yargs": "^17.7.1" @@ -15869,12 +15869,12 @@ "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-10.4.1.tgz", "integrity": "sha512-w4spUa4CMLoPuIHOANR8X5F/Hfs4b4OnxsofA9SOl2aaQNRgu77Qu0y60rReu8HxBKD/FUBJJmRpZeY/2WQAAQ==", "requires": { - "@polkadot/keyring": "12.0.1", + "@polkadot/keyring": "^12.0.1", "@polkadot/types-augment": "10.4.1", "@polkadot/types-codec": "10.4.1", "@polkadot/types-create": "10.4.1", - "@polkadot/util": "12.0.1", - "@polkadot/util-crypto": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/util-crypto": "^12.0.1", "rxjs": "^7.8.0", "tslib": "^2.5.0" }, @@ -15896,7 +15896,7 @@ "requires": { "@polkadot/types": "10.4.1", "@polkadot/types-codec": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15905,8 +15905,8 @@ "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-10.4.1.tgz", "integrity": "sha512-h6OCSF6i0b/Q4uCOEEiibMkGefhb7daaDGwoxjTEOeSqDE9gMIkhkyXVjqcOGbsHsFaYqYhuJakRQe/LICykTw==", "requires": { - "@polkadot/util": "12.0.1", - "@polkadot/x-bigint": "12.0.1", + "@polkadot/util": "^12.0.1", + "@polkadot/x-bigint": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15916,7 +15916,7 @@ "integrity": "sha512-E15P4ZQSAIq90Gnc+ZVK7XmEWRIF9qbCAQvJQ6nxikb6u5A9AzePAZ4XwxjJ3JXC5/t0Wxnij+pddtfxOkUi2w==", "requires": { "@polkadot/types-codec": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15925,11 +15925,11 @@ "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-10.4.1.tgz", "integrity": "sha512-vgxsJeZTdbNJ55CCICRcSeOJD6Qy4D2NaMhR2j24xxHRY1lL8uBfCE/ReIEY2Bxa8cCIjCtw5fXJiCWPjnQQoQ==", "requires": { - "@polkadot/networks": "12.0.1", + "@polkadot/networks": "^12.0.1", "@polkadot/types": "10.4.1", "@polkadot/types-codec": "10.4.1", "@polkadot/types-create": "10.4.1", - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15938,7 +15938,7 @@ "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-10.4.1.tgz", "integrity": "sha512-kt/TGVAGaGD76eM/kye8qdYxQDZtpc6GS58xYvgnsk59KkCvaOzOE+hHFDXx0UDy4pPgXKquk1EHxwiFTKSb4g==", "requires": { - "@polkadot/util": "12.0.1", + "@polkadot/util": "^12.0.1", "tslib": "^2.5.0" } }, @@ -15965,7 +15965,7 @@ "@noble/hashes": "1.3.0", "@polkadot/networks": "12.0.1", "@polkadot/util": "12.0.1", - "@polkadot/wasm-crypto": "7.1.1", + "@polkadot/wasm-crypto": "^7.1.1", "@polkadot/wasm-util": "^7.1.1", "@polkadot/x-bigint": "12.0.1", "@polkadot/x-randomvalues": "12.0.1",