Skip to content

Commit

Permalink
Updated needs clauses, reverted what i thought was inverted logic
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Barker <[email protected]>
  • Loading branch information
rbarkerSL committed Jul 1, 2024
1 parent 55f3d03 commit 20ea2de
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,19 @@ jobs:
- name: Proto Subpackage Publish Required
id: proto-required
run: |
PUBLISH_REQUIRED="true"
PUBLISH_REQUIRED="false"
if ! curl -sSLf "https://registry.npmjs.org/@hashgraph/proto/${{ steps.npm-package.outputs.proto-version }}" >/dev/null 2>&1; then
PUBLISH_REQUIRED="false"
PUBLISH_REQUIRED="true"
fi
echo "publish-required=${PUBLISH_REQUIRED}" >>"${GITHUB_OUTPUT}"
- name: Crypto Subpackage Publish Required
id: crypto-required
run: |
PUBLISH_REQUIRED="true"
PUBLISH_REQUIRED="false"
if ! curl -sSLf "https://registry.npmjs.org/@hashgraph/cryptography/${{ steps.npm-package.outputs.crypto-version }}" >/dev/null 2>&1; then
PUBLISH_REQUIRED="false"
PUBLISH_REQUIRED="true"
fi
echo "publish-required=${PUBLISH_REQUIRED}" >>"${GITHUB_OUTPUT}"
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
- name: Calculate Proto Subpackage Publish Arguments
id: proto-publish
working-directory: packages/proto
if: ${{ steps.validate-release.outputs.proto-publish-required == 'true' && !cancelled() && !failure() }}
if: ${{ needs.validate-release.outputs.proto-publish-required == 'true' && !cancelled() && !failure() }}
run: |
PUBLISH_ARGS="--access public --no-git-checks"
[[ "${{ github.event.inputs.dry-run-enabled }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --dry-run"
Expand All @@ -314,7 +314,7 @@ jobs:
- name: Calculate Crypto Subpackage Publish Arguments
id: crypto-publish
working-directory: packages/cryptography
if: ${{ steps.validate-release.outputs.crypto-publish-required == 'true' && !cancelled() && !failure() }}
if: ${{ needs.validate-release.outputs.crypto-publish-required == 'true' && !cancelled() && !failure() }}
run: |
PUBLISH_ARGS="--access public --no-git-checks"
[[ "${{ github.event.inputs.dry-run-enabled }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --dry-run"
Expand All @@ -341,26 +341,26 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/proto
if: ${{ steps.validate-release.outputs.proto-publish-required == 'true' && !cancelled() && !failure() }}
run: task -v publish -- ${{ steps.proto-publish.outputs.args }}
if: ${{ needs.validate-release.outputs.proto-publish-required == 'true' && !cancelled() && !failure() }}
run: task -v publish -- ${{ needs.proto-publish.outputs.args }}

- name: Publish Cryptography Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/cryptography
if: ${{ steps.validate-release.outputs.crypto-publish-required == 'true' && !cancelled() && !failure() }}
run: task -v publish -- ${{ steps.crypto-publish.outputs.args }}
if: ${{ needs.validate-release.outputs.crypto-publish-required == 'true' && !cancelled() && !failure() }}
run: task -v publish -- ${{ needs.crypto-publish.outputs.args }}

- name: Publish SDK Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: task -v publish -- ${{ steps.sdk-publish.outputs.args }}
run: task -v publish -- ${{ needs.sdk-publish.outputs.args }}

- name: Generate Github Release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
if: ${{ github.event.inputs.dry-run-enabled != 'true' && !cancelled() && !failure() }}
with:
tag: ${{ steps.validate-release.outputs.tag }}
tag: ${{ needs.validate-release.outputs.tag }}
prerelease: ${{ needs.validate-release.outputs.prerelease == 'true' }}
draft: false
generateReleaseNotes: true
Expand Down

0 comments on commit 20ea2de

Please sign in to comment.