Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix in types action #885

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ jobs:
# Step 9: Copy generated types and ABI into the lifi-contract-types repo
- name: Copy Type Bindings and ABI
run: |
rm -r lifi-contract-types/src/
mv typechain lifi-contract-types/src
rm -rf lifi-contract-types/src/
mkdir -p lifi-contract-types/src
cp -r typechain/* lifi-contract-types/src/
cp diamond.json lifi-contract-types/dist/

- name: Verify File Status (for debugging)
run: |
cd lifi-contract-types
git status

# Step 10: Build the lifi-contract-types project
- name: Build Contract Types
run: cd lifi-contract-types && yarn install && yarn build
Expand Down Expand Up @@ -167,9 +173,11 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
echo "Updating version from $LATEST_TAG to $NEW_VERSION"
git add src/*
git add dist/*
git add package.json
# git add src/*
# git add dist/*
# git add package.json
git add -A # Stage all changes, including deletions

git commit -m "actions: new contracts version $NEW_VERSION"

# Annotate and push the new tag
Expand Down
Loading