Commit 7a223c70 by Francisco Giordano

Refactor transpile scripts

parent f126f7a9
......@@ -20,4 +20,4 @@ jobs:
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
- run: npm ci
- run: bash scripts/transpile.sh
- run: bash scripts/transpile-push.sh
#!/usr/bin/env bash
set -euo pipefail -x
bash scripts/transpile.sh
COMMIT="$(git rev-parse --short HEAD)"
git config user.name 'github-actions'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add contracts
git reset --soft master
git checkout master
git commit -m "Transpile $COMMIT"
git push origin master
......@@ -5,14 +5,3 @@ set -euo pipefail -x
npm run compile
npx @openzeppelin/upgrade-safe-transpiler -D
COMMIT="$(git rev-parse --short HEAD)"
git config user.name 'github-actions'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add contracts
git reset --soft master
git checkout master
git commit -m "Transpile $COMMIT"
git push origin master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment