Skip to content

Commit 87c93fe

Browse files
committed
build and pack binaries on release only
1 parent 898b905 commit 87c93fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
permissions: write-all
88

9+
env:
10+
RELEASE_COMMIT_MSG: 'chore(release): update monorepo packages versions'
11+
912
jobs:
1013
stable:
1114
name: Stable
@@ -27,15 +30,17 @@ jobs:
2730
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2831
echo "date=$(date +"%B %d, %Y")" >> $GITHUB_OUTPUT
2932
- name: Build
33+
if: startsWith(github.event.head_commit.message, ${{ env.RELEASE_COMMIT_MSG }})
3034
run: pnpm --filter=@graphprotocol/graph-cli build
3135
- name: Pack binaries
36+
if: startsWith(github.event.head_commit.message, ${{ env.RELEASE_COMMIT_MSG }})
3237
run: pnpm --filter=@graphprotocol/graph-cli oclif:pack
3338
- name: Release / pull_request
3439
uses: dotansimha/[email protected]
3540
with:
3641
publish: pnpm release
3742
version: pnpm changeset version
38-
commit: 'chore(release): update monorepo packages versions'
43+
commit: ${{ env.RELEASE_COMMIT_MSG }}
3944
title: Upcoming Release Changes
4045
createGithubReleases: true
4146
githubReleaseName: ${{ steps.vars.outputs.date }}

0 commit comments

Comments
 (0)