Skip to content

Conversation

@cabljac
Copy link
Collaborator

@cabljac cabljac commented Jul 28, 2025

  • Add concurrency controls to prevent duplicate workflow runs

  • Implement job timeouts (10min quality, 30min test, 45min release)

  • Replace hardcoded pnpm setup with Corepack for automatic version management

  • Add pnpm store caching to speed up dependency installation

  • Add matrix testing for Node.js 20, and 22

  • Add build verification steps before tests and releases

  • Improve changeset validation with better error handling

  • Fix biome format check with --unsafe flag for CI environment

  • Add minimal permissions to release workflow for security

  • Enhance dry run mode to show actual version changes

  • Ensure only one release can run at a time

 - Add concurrency controls to prevent duplicate workflow runs - Implement job timeouts (10min quality, 30min test, 45min release) - Replace hardcoded pnpm setup with Corepack for automatic version management - Add pnpm store caching to speed up dependency installation - Add matrix testing for Node.js 18, 20, and 22 - Add build verification steps before tests and releases - Improve changeset validation with better error handling - Fix biome format check with --unsafe flag for CI environment - Add minimal permissions to release workflow for security - Enhance dry run mode to show actual version changes - Ensure only one release can run at a time
Copilot AI review requested due to automatic review settings July 28, 2025 10:20
@changeset-bot
Copy link

changeset-bot bot commented Jul 28, 2025

⚠️ No Changeset found

Latest commit: cc2bec9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@docs-page
Copy link

docs-page bot commented Jul 28, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/invertase/tanstack-query-firebase~197

Documentation is deployed and generated using docs.page.

This comment was marked as outdated.

@cabljac cabljac requested a review from Copilot July 28, 2025 10:21

This comment was marked as outdated.

 - Add explanatory comments for the --unsafe flag in format checks - Fix script error handling by moving set -e to the beginning - Use timestamp-based unique branch names for dry-run to prevent conflicts
@cabljac cabljac requested a review from Copilot July 28, 2025 10:34

This comment was marked as outdated.

 - Add explanatory comments for the --unsafe flag in format checks - Fix script error handling by moving set -e to the beginning - Use GITHUB_RUN_ID for unique branch names to prevent conflicts - Make build verification dynamic to discover packages automatically - Fix git diff references in dry run by saving original HEAD
@cabljac cabljac requested a review from Copilot July 28, 2025 10:49

This comment was marked as outdated.

 - Replace hardcoded package paths with dynamic discovery in build verification - Fix shell compatibility by avoiding command substitution in variable expansion - Use 1135430206 instead of 1753700397 for better portability - Save original HEAD reference before dry-run changes for accurate diffs - Fix spacing in error messages for better readability
@cabljac cabljac requested a review from Copilot July 28, 2025 11:02

This comment was marked as outdated.

@cabljac cabljac force-pushed the @invertase/fix-workflows branch 2 times, most recently from b8b7250 to e682f0f Compare July 28, 2025 11:31
@cabljac cabljac requested a review from Copilot July 28, 2025 11:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances GitHub Actions workflow robustness, performance, and security by implementing concurrency controls, timeouts, and improved dependency management. The changes focus on preventing duplicate workflow runs, optimizing build performance, and adding comprehensive validation steps.

  • Add concurrency controls and timeouts to prevent resource conflicts and runaway jobs
  • Replace hardcoded pnpm setup with Corepack and implement pnpm store caching for faster builds
  • Add Node.js matrix testing, build verification, and enhanced changeset validation with better error handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
.github/workflows/tests.yaml Adds concurrency controls, timeouts, Corepack setup, pnpm caching, Node.js matrix testing, and build verification steps
.github/workflows/release.yml Implements release concurrency controls, minimal permissions, enhanced changeset validation, and improved dry-run mode with actual version changes
 - Make build verification consistent between workflows by using dynamic package discovery - Add git user configuration for dry-run to prevent changeset version errors - Remove hardcoded package paths in release.yml to match tests.yaml approach - Remove Node.js 18 from test matrix due to Firebase CLI v14 incompatibility
@cabljac cabljac force-pushed the @invertase/fix-workflows branch from e682f0f to cc2bec9 Compare July 28, 2025 11:59
@cabljac cabljac requested a review from Ehesp July 28, 2025 12:28
@cabljac cabljac merged commit 0031e98 into main Jul 28, 2025
4 checks passed
@cabljac cabljac deleted the @invertase/fix-workflows branch July 28, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants