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
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
<!-- Please make sure that your commit message follows our format -->
5
5
<!-- Example: `fix(nx): must begin with lowercase` -->
6
6
7
+
<!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. -->
# Automated schedule - canary releases from master
4
5
schedule:
5
6
- cron: "0 3 * * 2-6"# Tuesdays - Saturdays, at 3am UTC
7
+
# Manual trigger - PR releases or dry-runs (based on workflow inputs)
6
8
workflow_dispatch:
9
+
inputs:
10
+
pr:
11
+
description: "If set, a real release will be created for the branch associated with the given PR number. If blank, a dry-run of the currently selected branch will be performed."
12
+
required: false
13
+
type: number
7
14
release:
8
15
types: [ published ]
9
16
17
+
# Dynamically generate the display name for the GitHub UI based on the event type and inputs
# Check out the latest master branch to get its copy of nx-release.ts
93
+
repository: nrwl/nx
94
+
ref: master
95
+
path: latest-master-checkout
96
+
97
+
- name: (PR Release Only) Check out PR branch
98
+
if: ${{ steps.script.outputs.ref != '' }}
99
+
uses: actions/checkout@v4
100
+
with:
101
+
# Check out the PR branch to get its copy of nx-release.ts
102
+
repository: ${{ steps.script.outputs.repo }}
103
+
ref: ${{ steps.script.outputs.ref }}
104
+
path: pr-branch-checkout
105
+
106
+
- name: (PR Release Only) Ensure that nx-release.ts has not changed in the PR being released
107
+
if: ${{ steps.script.outputs.ref != '' }}
108
+
env:
109
+
FILE_TO_COMPARE: "scripts/nx-release.ts"
110
+
run: |
111
+
if ! cmp -s "latest-master-checkout/${{ env.FILE_TO_COMPARE }}" "pr-branch-checkout/${{ env.FILE_TO_COMPARE }}"; then
112
+
echo "🛑 Error: The file ${{ env.FILE_TO_COMPARE }} is different on the ${{ steps.script.outputs.ref }} branch on ${{ steps.script.outputs.repo }} vs latest master on nrwl/nx, cancelling workflow."
113
+
exit 1
114
+
else
115
+
echo "✅ The file ${{ env.FILE_TO_COMPARE }} is identical between the ${{ steps.script.outputs.ref }} branch on ${{ steps.script.outputs.repo }} and latest master on nrwl/nx."
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -355,3 +355,7 @@ Closes #157
355
355
To simplify and automate the process of committing with this format,
356
356
**Nx is a [Commitizen](https://github.com/commitizen/cz-cli) friendly repository**, just do `git add` and
357
357
execute `pnpm commit`.
358
+
359
+
#### PR releases
360
+
361
+
If you are working on a particularly complex change or feature addition, you can request a dedicated Nx release for the associated pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate.
0 commit comments