Skip to content

Commit

Permalink
fix: release l1-contracts (#10095)
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy authored Nov 26, 2024
1 parent 743b07b commit 29f0d7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-aztec-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ jobs:
with:
concurrency_key: publish-npm
dockerhub_password: "${{ env.DOCKERHUB_PASSWORD }}"

- name: Publish bb.js NPM package
run: |
DEPLOY_TAG=${{ env.DEPLOY_TAG }}
Expand Down Expand Up @@ -335,10 +335,10 @@ jobs:
working-directory: ./aztec-up/terraform
run: |
terraform init
if [ "${{ github.ref_name }}" == "master" ]; then
TAG=master
else
if [ -n "${{ env.DEPLOY_TAG }}" ]; then
TAG=${{ env.DEPLOY_TAG }}
else
TAG=${{ github.ref_name }}
fi
export TF_VAR_VERSION=${TAG#aztec-packages-v}
terraform apply -auto-approve
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ publish-npm:
ARG VERSION
ARG DIST_TAG
ARG DRY_RUN=0
RUN --secret NPM_TOKEN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > /usr/src/barretenberg/ts/.npmrc
WORKDIR /usr/src/l1-contracts
RUN --secret NPM_TOKEN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
RUN jq --arg v $VERSION '.version = $v' package.json > _tmp.json && mv _tmp.json package.json
RUN if [ "$DRY_RUN" = "1" ]; then \
npm publish --tag $DIST_TAG --access public --dry-run; \
Expand Down

0 comments on commit 29f0d7a

Please sign in to comment.