Skip to content
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

fix: Deploy npm fixes #2685

Merged
merged 1 commit into from
Oct 4, 2023
Merged

fix: Deploy npm fixes #2685

merged 1 commit into from
Oct 4, 2023

Conversation

spalladino
Copy link
Collaborator

Fixes to the deploy_npm script. We were not cding into each package, so the script was attempting to publish the root workspace package.json.

@spalladino spalladino force-pushed the palla/fix-deploy-npm branch from 25301ca to 01a08ed Compare October 4, 2023 15:24
@@ -10,7 +10,7 @@ REPOSITORY="$1"
ERROR_ON_FAIL="${2:-"false"}"

# Check if there is a commit tag
if [[ -z "$COMMIT_TAG" ]]; then
if [[ -z "${COMMIT_TAG:-}" ]]; then
Copy link
Collaborator Author

@spalladino spalladino Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This failed due to the set -u

Comment on lines +24 to +25
PUBLISHED_VERSION=$(npm show . version ${TAG_ARG:-} 2> /dev/null)
HIGHER_VERSION=$(npx semver ${VERSION} ${PUBLISHED_VERSION} | tail -1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readonly modifier blew up the 2nd time the function was called

@spalladino spalladino enabled auto-merge (squash) October 4, 2023 15:25
@spalladino spalladino merged commit 0b788c6 into master Oct 4, 2023
2 checks passed
@spalladino spalladino deleted the palla/fix-deploy-npm branch October 4, 2023 15:27
spalladino pushed a commit that referenced this pull request Oct 4, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>aztec-packages: 0.8.4</summary>

##
[0.8.4](aztec-packages-v0.8.3...aztec-packages-v0.8.4)
(2023-10-04)


### Bug Fixes

* `deploy_dockerhub.sh` permissions
([#2682](#2682))
([628127d](628127d))
* Deploy npm fixes
([#2685](#2685))
([0b788c6](0b788c6))
* Foundation package is not private
([71d6cda](71d6cda))
</details>

<details><summary>barretenberg.js: 0.8.4</summary>

##
[0.8.4](barretenberg.js-v0.8.3...barretenberg.js-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg.js:** Synchronize aztec-packages versions
</details>

<details><summary>barretenberg: 0.8.4</summary>

##
[0.8.4](barretenberg-v0.8.3...barretenberg-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg:** Synchronize aztec-packages versions
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
AztecBot added a commit to AztecProtocol/barretenberg that referenced this pull request Oct 5, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>aztec-packages: 0.8.4</summary>

##
[0.8.4](AztecProtocol/aztec-packages@aztec-packages-v0.8.3...aztec-packages-v0.8.4)
(2023-10-04)


### Bug Fixes

* `deploy_dockerhub.sh` permissions
([#2682](AztecProtocol/aztec-packages#2682))
([628127d](AztecProtocol/aztec-packages@628127d))
* Deploy npm fixes
([#2685](AztecProtocol/aztec-packages#2685))
([0b788c6](AztecProtocol/aztec-packages@0b788c6))
* Foundation package is not private
([71d6cda](AztecProtocol/aztec-packages@71d6cda))
</details>

<details><summary>barretenberg.js: 0.8.4</summary>

##
[0.8.4](AztecProtocol/aztec-packages@barretenberg.js-v0.8.3...barretenberg.js-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg.js:** Synchronize aztec-packages versions
</details>

<details><summary>barretenberg: 0.8.4</summary>

##
[0.8.4](AztecProtocol/aztec-packages@barretenberg-v0.8.3...barretenberg-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg:** Synchronize aztec-packages versions
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Maddiaa0 pushed a commit that referenced this pull request Oct 6, 2023
Fixes to the `deploy_npm` script. We were not `cd`ing into each package,
so the script was attempting to publish the root workspace
`package.json`.
Maddiaa0 pushed a commit that referenced this pull request Oct 6, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>aztec-packages: 0.8.4</summary>

##
[0.8.4](aztec-packages-v0.8.3...aztec-packages-v0.8.4)
(2023-10-04)


### Bug Fixes

* `deploy_dockerhub.sh` permissions
([#2682](#2682))
([628127d](628127d))
* Deploy npm fixes
([#2685](#2685))
([0b788c6](0b788c6))
* Foundation package is not private
([71d6cda](71d6cda))
</details>

<details><summary>barretenberg.js: 0.8.4</summary>

##
[0.8.4](barretenberg.js-v0.8.3...barretenberg.js-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg.js:** Synchronize aztec-packages versions
</details>

<details><summary>barretenberg: 0.8.4</summary>

##
[0.8.4](barretenberg-v0.8.3...barretenberg-v0.8.4)
(2023-10-04)


### Miscellaneous

* **barretenberg:** Synchronize aztec-packages versions
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants