diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml index da5014f53d..51441456b7 100644 --- a/.github/workflows/release-publish.yaml +++ b/.github/workflows/release-publish.yaml @@ -1,12 +1,12 @@ -name: Release-Publish +name: Publish-Releases on: # When Pull Request is merged pull_request_target: types: [closed] jobs: - Release-Publish: - name: Publish + Publish-GitHub-Release: + name: GitHub Release if: | github.event.pull_request.user.login == 'web3-api-build-bot' && github.event.pull_request.merged == true @@ -75,6 +75,25 @@ jobs: draft: false prerelease: false + - uses: actions/github-script@0.8.0 + if: ${{env.TAG_EXISTS}} == 'false' + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '**[GitHub Release Published](https://github.com/${{ github.repository }}/releases/tag/${{ env.RELEASE_VERSION }}) `${{env.RELEASE_VERSION}}`** 🎉' + }) + + Publish-NPM-Release: + name: NPM Release + if: | + github.event.pull_request.user.login == 'web3-api-build-bot' && + github.event.pull_request.merged == true + runs-on: ubuntu-18.04 + steps: - name: Auth into NPM if: ${{env.TAG_EXISTS}} == 'false' run: | @@ -105,5 +124,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '**[Release Published](https://github.com/${{ github.repository }}/releases/tag/${{ env.RELEASE_VERSION }}) `${{env.RELEASE_VERSION}}`** 🎉' + body: '**[NPM Release Published](https://www.npmjs.com/search?q=%40web3api) `${{env.RELEASE_VERSION}}`** 🎉' }) diff --git a/packages/js/client/scripts/extractPluginConfigs.ts b/packages/js/client/scripts/extractPluginConfigs.ts index ed2d7c8756..d53c40cf29 100644 --- a/packages/js/client/scripts/extractPluginConfigs.ts +++ b/packages/js/client/scripts/extractPluginConfigs.ts @@ -92,7 +92,8 @@ const plugins: PluginConfigSource[] = [ function main(): void { const header = "/// NOTE: This is an auto-generated file. See scripts/extractPluginConfigs.ts\n" + - "/* eslint-disable @typescript-eslint/no-explicit-any */"; + "/* eslint-disable @typescript-eslint/no-explicit-any */\n" + + "/* eslint-disable prettier/prettier */"; const outputFiles: { fileName: string, content: string diff --git a/packages/js/client/src/pluginConfigs/Ens.ts b/packages/js/client/src/pluginConfigs/Ens.ts index d2cd5c6690..c7ead7570e 100644 --- a/packages/js/client/src/pluginConfigs/Ens.ts +++ b/packages/js/client/src/pluginConfigs/Ens.ts @@ -1,5 +1,6 @@ /// NOTE: This is an auto-generated file. See scripts/extractPluginConfigs.ts /* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable prettier/prettier */ /// Types generated from @web3api/ens-plugin-js build files: /// build/w3-man/plugin.d.ts, build/query/index.d.ts diff --git a/packages/js/client/src/pluginConfigs/Ethereum.ts b/packages/js/client/src/pluginConfigs/Ethereum.ts index 6a828e3d18..4d3e40d048 100644 --- a/packages/js/client/src/pluginConfigs/Ethereum.ts +++ b/packages/js/client/src/pluginConfigs/Ethereum.ts @@ -1,12 +1,12 @@ /// NOTE: This is an auto-generated file. See scripts/extractPluginConfigs.ts /* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable prettier/prettier */ /// Types generated from @web3api/ethereum-plugin-js build files: /// build/index.d.ts, build/common/EthereumConfig.d.ts, build/common/Connection.d.ts -export interface EthereumPluginConfigs - extends EthereumConfig, - Record {} +export interface EthereumPluginConfigs extends EthereumConfig, Record { +} export interface EthereumConfig { networks: ConnectionConfigs; diff --git a/packages/js/client/src/pluginConfigs/Ipfs.ts b/packages/js/client/src/pluginConfigs/Ipfs.ts index 6a50482364..253f939ea5 100644 --- a/packages/js/client/src/pluginConfigs/Ipfs.ts +++ b/packages/js/client/src/pluginConfigs/Ipfs.ts @@ -1,12 +1,12 @@ /// NOTE: This is an auto-generated file. See scripts/extractPluginConfigs.ts /* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable prettier/prettier */ /// Types generated from @web3api/ipfs-plugin-js build files: /// build/index.d.ts, build/common/IpfsConfig.d.ts -export interface IpfsPluginConfigs - extends IpfsConfig, - Record {} +export interface IpfsPluginConfigs extends IpfsConfig, Record { +} export interface IpfsConfig { provider: string; diff --git a/packages/js/client/src/pluginConfigs/index.ts b/packages/js/client/src/pluginConfigs/index.ts index 0a89c427e0..be5d1ab891 100644 --- a/packages/js/client/src/pluginConfigs/index.ts +++ b/packages/js/client/src/pluginConfigs/index.ts @@ -1,5 +1,6 @@ /// NOTE: This is an auto-generated file. See scripts/extractPluginConfigs.ts /* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable prettier/prettier */ import { IpfsPluginConfigs } from "./Ipfs"; import { EthereumPluginConfigs } from "./Ethereum";