Skip to content

Commit

Permalink
ci(release-please): fix conditional that checks if releases were crea…
Browse files Browse the repository at this point in the history
…ted (#9686)

## Summary

Fix a bug in release-please-action v4 that changes how the
`releases_created`
[output](https://github.com/googleapis/release-please-action?tab=readme-ov-file#outputs)
needs to be checked in conditionals.

ref: googleapis/release-please-action#912
  • Loading branch information
benelan authored Jun 25, 2024
1 parent 9fc8448 commit 39e6d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ jobs:
token: ${{ secrets.ADMIN_TOKEN }}
target-branch: ${{ github.ref_name }}
- name: Checkout Repository
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'
uses: actions/setup-node@v4
with:
node-version-file: package.json
registry-url: "https://registry.npmjs.org"
- name: Build Packages and Publish to NPM
if: ${{ steps.release.outputs.releases_created }}
if: steps.release.outputs.releases_created == 'true'
env:
RELEASED_PATHS: ${{ toJSON(steps.release.outputs.paths_released) }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down

0 comments on commit 39e6d6f

Please sign in to comment.