-
Notifications
You must be signed in to change notification settings - Fork 283
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
feat: deploy l1 contracts npm pkg #2754
Conversation
5a93367
to
df15d1e
Compare
|
||
function deploy_package() { | ||
REPOSITORY=$1 | ||
cd $REPOSITORY | ||
|
||
VERSION=$(extract_tag_version $REPOSITORY true) | ||
VERSION=$(extract_tag_version $REPOSITORY false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this one changed? Should it not error if failing anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to be able to take in this without a tag and see the entire process dry run. Open to thoughts here but this was changed by me then back by @spalladino . This reverts to my intended change allowing dry runs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it should be false
? @ludamad (remember I'm peanut-brain, so I just need a simple yes/no here 🥜).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeap - without it, you can't do dry runs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh good to know, I wasn't aware that that was the intention. Makes sense then!
# Generate L1 contract TypeScript artifacts. | ||
COPY --from=contracts /usr/src/l1-contracts/out /usr/src/l1-contracts/out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this one? Were they redundant with the generate-artifacts.sh
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No now that we are copying the entire l1-contracts
, out
directory gets copied with it. So this line is not needed anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, I forgot to think.
Introducing https://www.npmjs.com/package/@aztec/l1-contracts
I have manually deployed v0.8.8 (since deploy-npm script works for continual releases). Next release onwards CI should release 0.8.9 automatically!
Also created a README so people don't struggle as much!
Thanks @ludamad @PhilWindle for the help!