-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update release flow to be more robust #3938
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d23d93d
Ensure the new major is higher than the previous one
j-piasecki 40e7fcc
Try to infer the prerelease version from branch if not provided
j-piasecki d36322e
Move arg parsing to a helper
j-piasecki e630c88
Split detecting next latest and verifying it
j-piasecki e85adbb
Move parseArguments to a separate file
j-piasecki c1366d0
Move version resolution to version-utils
j-piasecki 6d07c72
Move getVersion to separate file
j-piasecki 3e3f2b0
Add release scripts tests
j-piasecki dd8a13f
Allow explicitly setting version for stable release
j-piasecki 1c6ec40
Update action
j-piasecki 305627c
Update workflow
j-piasecki 64869c4
Allow on fork
j-piasecki 58f091a
Use `format()`
j-piasecki 6d1b0a3
Don't commit to main
j-piasecki 49d4c82
Run version checks sooner
j-piasecki d093c91
Always explicitly set npm tag
j-piasecki 8bbbb25
Validate non-latest versions
j-piasecki 06d9bc1
Redisable on forks
j-piasecki 1399227
Add tests
j-piasecki 8c67891
Update wildcards
j-piasecki 1da92a5
Address simple remarks
j-piasecki f3ad677
Fix test action
j-piasecki bf5a4a6
Merge branch 'main' into update-release-flow
j-piasecki 5305079
Run all jest tests on ci
j-piasecki 32e4fdc
Always run the second test set
j-piasecki 1f8b2e6
Rename
j-piasecki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Run Jest tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - '**/*.js' | ||
| - '**/*.jsx' | ||
| - '**/*.ts' | ||
| - '**/*.tsx' | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| if: github.repository == 'software-mansion/react-native-gesture-handler' | ||
|
|
||
| runs-on: ubuntu-latest | ||
| concurrency: | ||
| group: jest-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Use Node.js 24 | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: yarn | ||
|
|
||
| - name: Install node dependencies | ||
| run: yarn --immutable | ||
|
|
||
| - name: Run jest scripts tests | ||
| run: yarn test:scripts | ||
|
|
||
| - name: Run jest package tests | ||
| # always run this step even if the previous step fails | ||
| if: ${{ always() }} | ||
| run: yarn workspace react-native-gesture-handler test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.