diff --git a/.github/workflows/npm-publish-min.yml b/.github/workflows/npm-publish-min.yml index c473fe414..bcb34dd2b 100644 --- a/.github/workflows/npm-publish-min.yml +++ b/.github/workflows/npm-publish-min.yml @@ -16,9 +16,11 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Code Generation run: | + BRANCH_NAME="build-$(date +%Y%m%d-%H%M%S)" yarn yarn bootstrap yarn build + git checkout -b $BRANCH_NAME cd packages/chain-registry yarn codegen yarn build @@ -33,8 +35,6 @@ jobs: run: | git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - BRANCH_NAME="build-$(date +%Y%m%d-%H%M%S)" - git checkout -b $BRANCH_NAME git add . if ! git diff --staged --quiet; then git commit -am "build 🛠 $BRANCH_NAME" diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 6de65a85c..fe0b5e574 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -20,9 +20,11 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Code Generation run: | + BRANCH_NAME="build-$(date +%Y%m%d-%H%M%S)" yarn yarn bootstrap yarn build + git checkout -b $BRANCH_NAME cd packages/chain-registry yarn codegen yarn build @@ -40,8 +42,6 @@ jobs: run: | git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - BRANCH_NAME="build-$(date +%Y%m%d-%H%M%S)" - git checkout -b $BRANCH_NAME git add . if ! git diff --staged --quiet; then git commit -am "build 🛠 $BRANCH_NAME"