From a181a75868c00a643f252306d4d389d6d1c9c927 Mon Sep 17 00:00:00 2001 From: Zetazzz Date: Wed, 6 Mar 2024 22:41:09 +0800 Subject: [PATCH] fix build workflows --- .github/workflows/npm-publish-min.yml | 4 ++-- .github/workflows/npm-publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"