Closed micahalcorn closed 6 years ago
@wanderingstan I think this existing issue is appropriate for our next release of Origin.js around the end of the π sprint.
@micahalcorn I agree! π
@micahalcorn @wanderingstan We need to add another step for origin-bridge
:
origin-js
(located in contracts/build/contracts
) to origin-bridge
(located in contracts
)βοΈ must happen after new contracts have been deployed to test nets!
@tyleryasaka fantastic -- Can you modify RELEASE.md directly (or PR)? (It was a great idea for you to make that file--a standard source of truth for our procedure!)
I think the protocol for beginning a release will be to copy over the latest from that that file into an issue like this.
Done. https://github.com/OriginProtocol/origin-js/commit/d9ee9bc86046287685a18117071aba9ceb12700f
Commit number 666. Should I be worried? π±
I'm going to consider this done. πΎ
π₯
NOTE: This checklist is generated from RELEASE.md when beginning the release procedure.
Prepare a release candidate
Release branches should be created well before a release is ready to be published. Sometime after a prior release has been merged and once all of a release's planned features have been merged to
develop
, a new branch should be created fromdevelop
:git checkout -b release-0.3.0 develop
git checkout -b rerelease-0.7.0 develop
(Note the re, due to July 1git
mixup)git checkout -b release-0.2.0 develop
No additional features should be added to this release branch. Only bug fixes should be merged directly to the release branch, which itself should eventually be merged back to
develop
in the Publish step.Set up
-test
branch of repos?Confirm readiness
package.json
, confirm version is0.7.0
docker-compose -f docker-compose-test.yml up origin-js-test
npm run build
cd build && python -m SimpleHTTPServer 8000
open 0.0.0.0:8000
Smart contract migrations
export RINKEBY_MNEMONIC="_____"
export ROPSTEN_MNEMONIC=$RINKEBY_MNEMONIC
npm run scripts/deploy_checklist.js
https://twitter.com/KeystonePaperCo/status/1012803664509952001
0xfF2BA846ab52EDBd724A5ef674AbF5A763849B61
0x3003F9dCFDC17e63cfe7023130B804829b369882
0xfF2BA846ab52EDBd724A5ef674AbF5A763849B61
0x3003F9dCFDC17e63cfe7023130B804829b369882
Test on Heroku
npm run build
# This will generate build directory
cd build && python -m SimpleHTTPServer 8000
# Serve from local webserver
open 0.0.0.0:8000
# Open the dapp in browser
Publish
origin-js
git diff master..develop contracts/contracts/
cd contracts
npx truffle migrate --reset --network ropsten | tee releases/0.7.0_ropsten.log
npx truffle migrate --reset --network rinkeby | tee releases/0.7.0_rinkeby.log
dist/origin.js
) -- Not redundant: This will bake in the new contract addresses into the contract's.json
files.npm run install:dev
git checkout develop
git merge --no-ff rerelease-0.7.0
git push
git checkout master
git merge --no-ff rerelease-0.7.0
git push
git branch -D rerelease-0.7.0
v0.7.0
(This will add git tag onmaster
)<<<<<<< HEADhttps://rinkeby.etherscan.io/address/<contract address>
https://rinkeby.etherscan.io/address/0x29d260c47411a0b9eeeb087925afa759914b0d2f
npm publish
origin-dapp
package-lock.json
npm unlink --no-save origin && npm install && npm run build
git add package.json && git commit -m "0.3.0 release"
git checkout develop
git merge --no-ff release-0.3.0
git push
git checkout master
git merge --no-ff release-0.3.0
git push
git branch -D release-0.3.0
git clone https://github.com/OriginProtocol/origin-dapp && cd origin-dapp
heroku create && git push heroku master
master
to match origin-js.git tag -a v0.3.0 -m "New release"
origin-bridge
git checkout develop
git merge --no-ff release-0.2.0
git push
git checkout master
git merge --no-ff release-0.2.0
git push
git branch -D release-0.2.0
master
to match origin-js.git tag -a v0.2.0 -m "New release"
Follow-up
origin.js
file is accessible viacode.originprotocol.com
redirectnpm unlink --no-save origin
master
branch shown by defaultdevelop
to for next releasegit checkout develop
subl package.json
git push
Troubleshooting
Error: insufficient funds for gas * price + value