Skip to content

Commit

Permalink
Merge pull request #249 from InjectiveLabs/chore/yaml-update-for-ibc-…
Browse files Browse the repository at this point in the history
…script

chore: update yml files for ibc tokens script
  • Loading branch information
bangjelkoski authored Oct 24, 2023
2 parents 3ba6ec2 + 8c3591e commit 323beaa
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: 'Setup [email protected]'
run: yarn global add [email protected] --ignore-engines

- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build dependencies
run: |
node etc/bootstrapEnv
Expand All @@ -35,13 +40,14 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 'Commit ibcTokenMetadata.json if changed'
run: |
git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json")
- name: Version and publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
lerna version prerelease --preid dev --force-git-tag --no-changelog --yes
lerna publish from-git --force-git-tag --dist-tag dev --yes --summary-file
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: 'Setup [email protected]'
run: yarn global add [email protected] --ignore-engines

- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build dependencies
run: |
node etc/bootstrapEnv
Expand All @@ -35,13 +40,14 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 'Commit ibcTokenMetadata.json if changed'
run: |
git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json")
- name: Version and publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
lerna version prerelease --preid beta --force-git-tag --no-changelog --yes
lerna publish from-git --force-git-tag --dist-tag next --yes --summary-file
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: 'Setup [email protected]'
run: yarn global add [email protected] --ignore-engines

- name: Set up Git user
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build dependencies
run: |
node etc/bootstrapEnv
Expand All @@ -35,13 +40,14 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 'Commit ibcTokenMetadata.json if changed'
run: |
git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json")
- name: Version and publish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
lerna version patch --conventional-commits --conventional-graduate --force-git-tag --yes
lerna publish from-git --force-git-tag --dist-tag latest --yes --summary-file
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-ui-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"scripts": {
"postinstall": "link-module-alias",
"build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files",
"build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files && yarn get-ibc-tokens",
"build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post && link-module-alias",
"build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json",
"clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist",
Expand Down

0 comments on commit 323beaa

Please sign in to comment.