Skip to content

Commit

Permalink
fix: update affected projects check in release workflow (#874)
Browse files Browse the repository at this point in the history
## Related Issues
Fixes descope/etc#8715

## Description
Updated the condition in the release-next-react-sdk workflow to check
for affected projects using the correct base and head references.
This ensures that the workflow accurately determines if the 'react-sdk'
or 'web-component' projects are affected by recent changes.

---------

Co-authored-by: tomski747 <[email protected]>
  • Loading branch information
tomski747 and tomski747 authored Dec 24, 2024
1 parent f6c19b5 commit 7311ea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-next-react-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
- name: Check if should run
id: 'check'
run: |
if $(npx nx show projects --affected --plain | grep -q "react-sdk\|web-component"); then
# Check if the affected projects include "react-sdk" or "web-component" since the last commit
if $(npx nx show projects --affected --base HEAD~1 --head HEAD | grep -q "react-sdk\|web-component"); then
echo "run=true" >> $GITHUB_OUTPUT
else
echo "run=false" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion packages/sdks/react-sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export type DescopeProps = {
tenant?: string;
// If theme is not provided - the OS theme will be used
theme?: ThemeOptions;
// Unless locale is provided - the browser's locale will be used
// If locale is not provided - the browser's locale will be used
locale?: string;
autoFocus?: AutoFocusOptions;
validateOnBlur?: boolean;
Expand Down

0 comments on commit 7311ea7

Please sign in to comment.