Skip to content

Commit

Permalink
move out terra pacakges (subquery#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 authored Jun 17, 2022
1 parent 7d94648 commit 2041a11
Show file tree
Hide file tree
Showing 96 changed files with 41 additions and 8,209 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
package-path: packages/common-substrate
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/common-terra
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/node
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/node-terra
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/query
Expand All @@ -60,11 +50,6 @@ jobs:
package-path: packages/types
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/types-terra
repo-token: ${{ secrets.REPO_TOKEN }}

- uses: ./.github/actions/create-release
with:
package-path: packages/utils
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ jobs:
with:
paths: packages/types

- uses: marceloprado/has-changed-path@v1
id: changed-types-terra
with:
paths: packages/types-terra

- uses: marceloprado/has-changed-path@v1
id: changed-common
with:
Expand All @@ -55,11 +50,6 @@ jobs:
with:
paths: packages/common-substrate

- uses: marceloprado/has-changed-path@v1
id: changed-common-terra
with:
paths: packages/common-terra

- uses: marceloprado/has-changed-path@v1
id: changed-cli
with:
Expand All @@ -70,11 +60,6 @@ jobs:
with:
paths: packages/node

- uses: marceloprado/has-changed-path@v1
id: changed-node-terra
with:
paths: packages/node-terra

- uses: marceloprado/has-changed-path@v1
id: changed-query
with:
Expand Down Expand Up @@ -110,13 +95,6 @@ jobs:
package-path: packages/types
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump types terra & deploy
if: steps.changed-types-terra.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/types-terra
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump common & deploy
if: steps.changed-common.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
Expand All @@ -131,27 +109,13 @@ jobs:
package-path: packages/common-substrate
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump common terra & deploy
if: steps.changed-common-terra.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/common-terra
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node & deploy
if: steps.changed-node.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/node
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump node terra & deploy
if: steps.changed-node-terra.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
with:
package-path: packages/node-terra
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Bump query & deploy
if: steps.changed-query.outputs.changed == 'true'
uses: ./.github/actions/create-prerelease
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
with:
paths: packages/types

- uses: marceloprado/has-changed-path@v1
id: changed-types-terra
with:
paths: packages/types-terra

- uses: marceloprado/has-changed-path@v1
id: changed-common
with:
Expand All @@ -56,11 +51,6 @@ jobs:
with:
paths: packages/common-substrate

- uses: marceloprado/has-changed-path@v1
id: changed-common-terra
with:
paths: packages/common-terra

- uses: marceloprado/has-changed-path@v1
id: changed-cli
with:
Expand All @@ -71,11 +61,6 @@ jobs:
with:
paths: packages/node

- uses: marceloprado/has-changed-path@v1
id: changed-node-terra
with:
paths: packages/node-terra

- uses: marceloprado/has-changed-path@v1
id: changed-query
with:
Expand Down Expand Up @@ -113,14 +98,6 @@ jobs:
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Types Terra
if: steps.changed-types-terra.outputs.changed == 'true'
uses: ./.github/actions/create-release
with:
package-path: packages/types-terra
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Common
if: steps.changed-common.outputs.changed == 'true'
uses: ./.github/actions/create-release
Expand All @@ -137,14 +114,6 @@ jobs:
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Common Terra
if: steps.changed-common-terra.outputs.changed == 'true'
uses: ./.github/actions/create-release
with:
package-path: packages/common-terra
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Node
if: steps.changed-node.outputs.changed == 'true'
uses: ./.github/actions/create-release
Expand All @@ -153,14 +122,6 @@ jobs:
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Node Terra
if: steps.changed-node-terra.outputs.changed == 'true'
uses: ./.github/actions/create-release
with:
package-path: packages/node-terra
repo-token: ${{ secrets.REPO_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}

- name: Publish Query
if: steps.changed-query.outputs.changed == 'true'
uses: ./.github/actions/create-release
Expand Down
4 changes: 0 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ module.exports = {
'packages/cli/src/**/*.ts',
'packages/common/src/**/*.ts',
'packages/common-substrate/src/**/*.ts',
'packages/common-terra/src/**/*.ts',
'packages/node/src/**/*.ts',
'packages/node-terra/src/**/*.ts',
'packages/utils/src/**/*.ts',
'packages/validator/src/**/*.ts',
],
Expand Down Expand Up @@ -93,8 +91,6 @@ module.exports = {
moduleNameMapper: {
'^@subql/common-substrate': '<rootDir>/packages/common-substrate/src',
'^@subql/common-substrate/(.*)$': '<rootDir>/packages/common-substrate/src/$1',
'^@subql/common-terra': '<rootDir>/packages/common-terra/src',
'^@subql/common-terra/(.*)$': '<rootDir>/packages/common-terra/src/$1',
'^@subql/common': '<rootDir>/packages/common/src',
'^@subql/common/(.*)$': '<rootDir>/packages/common/src/$1',
'^@subql/utils': '<rootDir>/packages/utils/src',
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@subql/common-avalanche": "^0.0.3-2",
"@subql/common-cosmos": "^0.0.1-0",
"@subql/common-substrate": "workspace:*",
"@subql/common-terra": "workspace:*",
"@subql/common-terra": "^0.6.0",
"@subql/utils": "workspace:*",
"@subql/validator": "workspace:*",
"@types/ejs": "^3.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"references": [
{"path": "../common"},
{"path": "../common-substrate"},
{"path": "../common-terra"},
{"path": "../utils"},
{"path": "../validator"}
],
Expand Down
41 changes: 0 additions & 41 deletions packages/common-terra/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 2041a11

Please sign in to comment.