Skip to content

Merge develop to main (v2.1.0) (#120) #4

Merge develop to main (v2.1.0) (#120)

Merge develop to main (v2.1.0) (#120) #4

Workflow file for this run

name: Update Dependent Repositories
on:
push:
branches:
- main
paths:
- 'package.json'
jobs:
update-dependents:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Extract version from package.json
id: package_version
run: echo "::set-output name=version::$(jq -r '.version' package.json)"
- name: Update axiom-quickstart package version
env:
NEW_VERSION: ${{ steps.package_version.outputs.version }}
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git clone https://github.com/axiom-crypto/axiom-quickstart.git
cd axiom-quickstart
sed -i "s/\"@axiom-crypto\/client\": \".*\"/\"@axiom-crypto\/client\": \"$NEW_VERSION\"/" package.json
git checkout -b update-axiom-sdk-client-version
git add package.json
git commit -m "Update axiom-sdk-client version to $NEW_VERSION"
git push origin update-axiom-sdk-client-version
gh pr create --title "Update axiom-sdk-client version to $NEW_VERSION" --body "This is an automated pull request to update the axiom-sdk-client version to $NEW_VERSION" --repo axiom-crypto/axiom-quickstart --head update-axiom-sdk-client-version --base main
- name: Update axiom-scaffold-nextjs package version
env:
NEW_VERSION: ${{ steps.package_version.outputs.version }}
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git clone https://github.com/axiom-crypto/axiom-scaffold-nextjs.git
cd axiom-scaffold-nextjs
sed -i "s/\"@axiom-crypto\/client\": \".*\"/\"@axiom-crypto\/client\": \"$NEW_VERSION\"/" package.json
git checkout -b update-axiom-sdk-client-version
git add package.json
git commit -m "Update axiom-sdk-client version to $NEW_VERSION"
git push origin update-axiom-sdk-client-version
gh pr create --title "Update axiom-sdk-client version to $NEW_VERSION" --body "This is an automated pull request to update the axiom-sdk-client version to $NEW_VERSION" --repo axiom-crypto/axiom-scaffold-nextjs --head update-axiom-sdk-client-version --base main