Skip to content

Commit c0cc0de

Browse files
authored
Update default output of bin/release (#1404)
* Update release script to not contribute a default process type if any `mcp` entries are present in the `Procfile` --------- Signed-off-by: Colin Casey <[email protected]>
1 parent 550fcb1 commit c0cc0de

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44

5+
- Release script will not contribute a default process type if any `mcp` entries are present in the Procfile. ([#1404](https://github.com/heroku/heroku-buildpack-nodejs/pull/1404))
56

67
## [v292] - 2025-05-09
78

bin/release

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/usr/bin/env bash
22
# bin/release <build-dir>
33

4-
cat << EOF
4+
BUILD_DIR=${1:-}
5+
6+
if [ -f "$BUILD_DIR/Procfile" ] && grep -q -e "^\s*mcp.*:" "$BUILD_DIR/Procfile"; then
7+
cat << EOF
8+
addons: []
9+
default_process_types: {}
10+
EOF
11+
else
12+
cat << EOF
513
addons: []
614
default_process_types:
715
web: npm start
816
EOF
17+
fi

bin/report

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ kv_pair_string "package_manager_request" "$(read_json "$BUILD_DIR/package.json"
102102

103103
# is a procfile with a web process used?
104104
kv_pair "procfile_with_web_process" "$(has_procfile_with_web_process)"
105+
105106
# is a procfile used?
106107
if [ -f "$BUILD_DIR/Procfile" ]; then
107108
kv_pair "procfile_used" "true"

0 commit comments

Comments
 (0)