You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- PR is **merged** to default branch AND tests pass (normal release), OR
547
+
- Direct **push to default branch** AND tests pass (normal release), OR
488
548
- PR has **`prerelease` label** AND PR is **not merged** AND tests pass (prerelease)
489
549
- **Skipped when**:
490
550
- PR has `NoRelease` label, OR
491
551
- Scheduled run (cron trigger), OR
492
552
- Manual run (workflow_dispatch), OR
493
553
- Tests fail
494
-
- Condition: `(github.event_name == 'pull_request' AND github.event.pull_request.merged == true) OR (labels contains 'prerelease' AND NOT merged)`
554
+
- Condition: `((github.event_name == 'pull_request' AND github.event.pull_request.merged == true) OR (github.event_name == 'push' AND github.ref == format('refs/heads/{0}', github.event.repository.default_branch))) OR (labels contains 'prerelease' AND NOT merged)`
495
555
496
556
### Publishing Behavior Examples
497
557
@@ -508,6 +568,7 @@ The Process-PSModule workflow uses **dynamic conditions** to determine job execu
- **`synchronize` event** with `prerelease` label publishes new prerelease on each push
594
656
- **Secrets** MUST include `APIKEY` for PowerShell Gallery publishing (optional for CI-only runs)
@@ -745,4 +807,4 @@ For agent-specific runtime development guidance **when developing the framework*
745
807
746
808
**For Consuming Repositories**: Follow the Required Module Structure and Workflow Integration Requirements documented in the Product Overview section. Start with [Template-PSModule](https://github.com/PSModule/Template-PSModule).
Copy file name to clipboardExpand all lines: README.md
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,46 @@ Gallery and produces documentation that is published to GitHub Pages. The workfl
16
16
1. Create a new secret in the repository called `APIKEY` and set it to the API key for the PowerShell Gallery.
17
17
1. Create a branch, make your changes, create a PR and let the workflow run.
18
18
19
+
## ⚠️ Breaking Changes in v5.0.0
20
+
21
+
**Unified Workflow**: Process-PSModule v5.0.0 consolidates CI and release operations into a single `workflow.yml` file.
22
+
23
+
### What Changed
24
+
25
+
-**CI.yml is deprecated**: The separate `CI.yml` workflow is now deprecated and will be removed in v6.0.0
26
+
-**Single workflow for all operations**: `workflow.yml` now handles both CI testing (unmerged PRs) and release operations (merged PRs)
27
+
-**Intelligent conditional execution**: The workflow automatically determines whether to run tests only or tests + release based on trigger context
28
+
29
+
### Migration Required?
30
+
31
+
- ✅ **Already using workflow.yml only**: No changes required, your setup continues working
32
+
- ⚠️ **Using CI.yml**: Migration recommended during v5.x; see [migration guide](./docs/migration/v5-unified-workflow.md)
33
+
34
+
### Why This Change?
35
+
36
+
- Reduces maintenance burden across all PSModule repositories
37
+
- Eliminates configuration drift between separate workflow files
38
+
- Provides single source of truth for entire CI/CD pipeline
39
+
- Simplifies onboarding for new repositories
40
+
41
+
For detailed migration instructions, see the [v5.0.0 Migration Guide](./docs/migration/v5-unified-workflow.md).
42
+
19
43
## How it works
20
44
45
+
The unified workflow (`workflow.yml`) intelligently handles both continuous integration testing and automated release publishing based on trigger context.
0 commit comments