code-foundry 0.27.17 → 0.27.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +16 -2
- package/CHANGELOG.md +7 -0
- package/docs/RELEASES.md +12 -5
- package/package.json +1 -1
|
@@ -71,6 +71,16 @@ jobs:
|
|
|
71
71
|
`release_type=${releaseType}\nlegacy_release_type=${legacyReleaseType}\nnpm_publish=${npmPublish}\n`,
|
|
72
72
|
)
|
|
73
73
|
NODE
|
|
74
|
+
- name: Detect release credentials
|
|
75
|
+
id: credentials
|
|
76
|
+
env:
|
|
77
|
+
RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
78
|
+
run: |
|
|
79
|
+
if [ -n "$RELEASE_PLEASE_TOKEN" ]; then
|
|
80
|
+
echo "auto_merge=true" >> "$GITHUB_OUTPUT"
|
|
81
|
+
else
|
|
82
|
+
echo "auto_merge=false" >> "$GITHUB_OUTPUT"
|
|
83
|
+
fi
|
|
74
84
|
- name: Release Please
|
|
75
85
|
id: release
|
|
76
86
|
if: steps.profile.outputs.release_type != 'none'
|
|
@@ -79,10 +89,14 @@ jobs:
|
|
|
79
89
|
token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
|
|
80
90
|
config-file: release-please-config.json
|
|
81
91
|
release-type: ${{ steps.profile.outputs.legacy_release_type }}
|
|
92
|
+
- name: Leave release pull request for manual merge
|
|
93
|
+
if: steps.release.outputs.prs_created == 'true' && steps.credentials.outputs.auto_merge != 'true'
|
|
94
|
+
run: |
|
|
95
|
+
echo "::notice title=Manual release merge required::Release Please created or updated a version pull request. RELEASE_PLEASE_TOKEN is not configured, so Code Foundry skipped guarded auto-merge. Configure the token before merging when downstream release workflows must run automatically."
|
|
82
96
|
- name: Merge generated version pull requests
|
|
83
|
-
if: steps.release.outputs.prs_created == 'true'
|
|
97
|
+
if: steps.release.outputs.prs_created == 'true' && steps.credentials.outputs.auto_merge == 'true'
|
|
84
98
|
env:
|
|
85
|
-
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN
|
|
99
|
+
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
86
100
|
run: |
|
|
87
101
|
set -euo pipefail
|
|
88
102
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.27.18](https://github.com/0xPlayerOne/code-foundry/compare/v0.27.17...v0.27.18) (2026-07-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **release:** degrade gracefully without release token ([69ac43a](https://github.com/0xPlayerOne/code-foundry/commit/69ac43acfa2813495b8da0535942afbbedae3017))
|
|
9
|
+
|
|
3
10
|
## [0.27.17](https://github.com/0xPlayerOne/code-foundry/compare/v0.27.16...v0.27.17) (2026-07-29)
|
|
4
11
|
|
|
5
12
|
|
package/docs/RELEASES.md
CHANGED
|
@@ -29,8 +29,8 @@ body. Existing `CHANGELOG.md` history remains repository-owned.
|
|
|
29
29
|
Set these values in `.github/code-foundry.yml`:
|
|
30
30
|
|
|
31
31
|
```yaml
|
|
32
|
-
release_type: auto
|
|
33
|
-
npm_publish: false
|
|
32
|
+
release_type: auto # auto, node, python, rust, simple, or none
|
|
33
|
+
npm_publish: false # true only for an npm package
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
`auto` selects a supported manifest. Use `simple` with `version.txt` for a
|
|
@@ -39,9 +39,16 @@ not release automatically.
|
|
|
39
39
|
|
|
40
40
|
## Pull request permissions
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
Release Please falls back to the repository's `GITHUB_TOKEN` when a
|
|
43
|
+
`RELEASE_PLEASE_TOKEN` secret is unavailable. In that mode, Code Foundry opens
|
|
44
|
+
or updates the version pull request, leaves it for manual merge, and completes
|
|
45
|
+
the release job successfully.
|
|
46
|
+
|
|
47
|
+
Configure a narrowly scoped `RELEASE_PLEASE_TOKEN` repository or organization
|
|
48
|
+
secret to enable guarded automatic merging and downstream workflows triggered
|
|
49
|
+
by the resulting release. The token needs `contents`, `issues`, and
|
|
50
|
+
`pull-requests` write permissions. Code Foundry validates every changed path in
|
|
51
|
+
the generated version pull request before using the token to merge it.
|
|
45
52
|
|
|
46
53
|
## Operational checklist
|
|
47
54
|
|
package/package.json
CHANGED