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

update workflow #1271

Merged
merged 13 commits into from
Feb 4, 2025
Merged

update workflow #1271

merged 13 commits into from
Feb 4, 2025

Conversation

ph-fritsche
Copy link
Member

@ph-fritsche ph-fritsche commented Feb 4, 2025

What

  • Upgrade actions
  • Enable CI workflow on feature branches
  • Cache node_modules
  • Enable dry mode for release action per repository variable

Why

Actions used in workflow have been deprecated.

Installing dependencies on each workflow run slows down the workflow significantly – delaying feedback from tests.

Enabling the workflow on all branches (except all-contributors/**) allows to use our CI to test reproductions without opening a PR.

Batching multiple PRs into one release reduces noise.
When merging into main this requires us to merge faster than CI reaches the release step.
Instead of changing the PR target branch to a staging branch, we can set the release action to dry run mode and sort out any merge conflicts. Then we can reactivate release and rerun the last action.

How

yarn.lock and node_modules are cached. If package.json is changed, a new cache will be created.
Cache/refresh prunes the caches daily and creates a fresh cache in main scope.
The fresh install can also be triggered per workflow_dispatch if needed.

Activate dry mode of release action by setting repository variable RELEASE_DRY to true.

Checklist

  • Ready to be merged

Copy link

codesandbox-ci bot commented Feb 4, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@ph-fritsche ph-fritsche force-pushed the chore-scripts branch 3 times, most recently from 3d9e0a6 to b1de313 Compare February 4, 2025 15:11
@ph-fritsche ph-fritsche merged commit 3d7005a into main Feb 4, 2025
5 checks passed
@ph-fritsche ph-fritsche deleted the chore-scripts branch February 4, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant