Skip to content

Commit b21deb7

Browse files
ci: run release-please via CLI instead of the googleapis action
The googleapis/release-please-action isn't on the org Actions allow-list, so the release-please workflow added in #321 failed at startup (no release PR cut). Run the release-please CLI under actions/setup-node (allow-listed) instead — same manifest-mode behavior (release-pr + github-release), no third-party action. Verified the CLI commands/flags against release-please@16. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a51ed7a commit b21deb7

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: release-please
22

3-
# Cuts versioned contract-checkpoint releases (tag + GitHub release + CHANGELOG)
4-
# from conventional commits. These are contract snapshots, NOT a deploy gate.
3+
# Versioned contract-checkpoint releases (tag + GitHub release + CHANGELOG) from
4+
# conventional commitsNOT a deploy gate. Uses the CLI (org blocks the action).
55

66
on:
77
push:
@@ -12,13 +12,27 @@ on:
1212
permissions:
1313
contents: write
1414
pull-requests: write
15+
issues: write # release-please labels release PRs (autorelease:*) via the Issues API
1516

1617
jobs:
1718
release-please:
1819
if: github.repository == 'scaleapi/scale-agentex'
1920
runs-on: ubuntu-latest
2021
steps:
21-
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
22+
- uses: actions/setup-node@v4
2223
with:
23-
config-file: release-please-config.json
24-
manifest-file: .release-please-manifest.json
24+
node-version: "20"
25+
- name: Release PR + GitHub release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
npx --yes release-please@16 release-pr \
30+
--token="$GITHUB_TOKEN" \
31+
--repo-url="${{ github.repository }}" \
32+
--config-file=release-please-config.json \
33+
--manifest-file=.release-please-manifest.json
34+
npx --yes release-please@16 github-release \
35+
--token="$GITHUB_TOKEN" \
36+
--repo-url="${{ github.repository }}" \
37+
--config-file=release-please-config.json \
38+
--manifest-file=.release-please-manifest.json

0 commit comments

Comments
 (0)