Skip to content

Commit

Permalink
chore: fix plugin config codegen + linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Apr 21, 2022
1 parent addd943 commit 5f7c914
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 11 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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}}`** 🎉'
})
3 changes: 2 additions & 1 deletion packages/js/client/scripts/extractPluginConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/js/client/src/pluginConfigs/Ens.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/js/client/src/pluginConfigs/Ethereum.ts
Original file line number Diff line number Diff line change
@@ -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<string, unknown> {}
export interface EthereumPluginConfigs extends EthereumConfig, Record<string, unknown> {
}

export interface EthereumConfig {
networks: ConnectionConfigs;
Expand Down
6 changes: 3 additions & 3 deletions packages/js/client/src/pluginConfigs/Ipfs.ts
Original file line number Diff line number Diff line change
@@ -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<string, unknown> {}
export interface IpfsPluginConfigs extends IpfsConfig, Record<string, unknown> {
}

export interface IpfsConfig {
provider: string;
Expand Down
1 change: 1 addition & 0 deletions packages/js/client/src/pluginConfigs/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 5f7c914

Please sign in to comment.