-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #954 from multiversx/development
v2.22.4
- Loading branch information
Showing
4 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: run-template-dapps-integration | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
repository_dispatch: | ||
types: run-template-dapps-integration | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run_template_dapps_integration_script: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Run script file | ||
run: | | ||
chmod +x ./scripts/template-dapps-integration.sh | ||
./scripts/template-dapps-integration.sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/sh | ||
|
||
# Exit with nonzero exit code if anything fails | ||
set -e | ||
|
||
# Install prerequisites | ||
echo "Installing yarn..." | ||
npm install --global yarn | ||
echo "Installing yalc..." | ||
npm install -global yalc | ||
|
||
|
||
# Prepare mx-sdk-dapp for publishing | ||
git clone https://github.com/multiversx/mx-sdk-dapp.git | ||
|
||
echo "cd mx-sdk-dapp..." | ||
cd mx-sdk-dapp | ||
git checkout development | ||
|
||
echo "Installing dependencies for mx-sdk-dapp..." | ||
yarn install | ||
|
||
echo "Building mx-sdk-dapp..." | ||
yarn build | ||
|
||
echo "Publishing mx-sdk-dapp..." | ||
cd dist | ||
yalc publish | ||
cd ../.. | ||
|
||
|
||
# Consume mx-sdk-dapp in mx-template-dapp | ||
git clone https://github.com/multiversx/mx-template-dapp.git | ||
|
||
echo "cd mx-template-dapp..." | ||
cd mx-template-dapp | ||
|
||
echo "Installing dependencies mx-template-dapp..." | ||
yarn install | ||
|
||
echo "Linking mx-sdk-dapp..." | ||
yalc add @multiversx/sdk-dapp | ||
|
||
echo "Building mx-template-dapp..." | ||
yarn build:devnet | ||
|
||
|
||
# Consume mx-sdk-dapp in mx-template-dapp-nextjs | ||
git clone https://github.com/multiversx/mx-template-dapp-nextjs.git | ||
|
||
echo "cd mx-template-dapp-nextjs..." | ||
cd mx-template-dapp-nextjs | ||
|
||
echo "Installing dependencies mx-template-dapp-nextjs..." | ||
yarn install | ||
|
||
echo "Linking mx-sdk-dapp..." | ||
yalc add @multiversx/sdk-dapp | ||
|
||
echo "Building mx-template-dapp-nextjs..." | ||
yarn build-devnet | ||
|
||
echo "Script executed successfully!" |