-
Notifications
You must be signed in to change notification settings - Fork 38
55 lines (50 loc) · 1.44 KB
/
codegen-types-dryrun.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Generate Types Dryrun
on:
workflow_dispatch:
jobs:
generate-types:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4
with:
submodules: 'recursive' # Ensures submodules are also checked out
- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
- name: Update Git Submodules 🔄
run: |
git submodule update --remote
cd packages/chain-registry/chain-registry
- name: Types Generation
run: |
git submodule update --remote
CHANGES_DESC="build-$(date +%Y%m%d-%H%M%S)"
yarn
yarn build
yarn symlink
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
cd v2/types
yarn types
yarn build
cd ../../
cd v2/interfaces
yarn types
yarn build
cd ../../
cd v2/chain-registry
yarn codegen
yarn build
cd ../../
git add .
if ! git diff --staged --quiet; then
echo "GIT_RESULT=Changes to commit and/or publish." >> $GITHUB_ENV
else
echo "GIT_RESULT=No changes to commit." >> $GITHUB_ENV
fi
- name: Git Ops
run: |
echo $GIT_RESULT