Skip to content

Commit f53d476

Browse files
authored
Fix: add macOS binaries to Changeset releases (#13)
* fix: update binary-build workflow to add binaries to existing Changeset releases * chore: changeset commit false * chore: remove documenttion tag * fix: exclude changeset markdown files from documentation label
1 parent ffca8d3 commit f53d476

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.changeset/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"access": "public",
77
"baseBranch": "main",
88
"prettier": false,
9+
"commit": false,
910
"updateInternalDependencies": "patch",
1011
"ignore": []
1112
}

.changeset/tired-mangos-type.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"git-intent": patch
3+
"@offlegacy/git-intent-core": patch
4+
---
5+
6+
fix: update binary-build workflow to add binaries to existing Changeset releases
7+

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ core:
88

99
documentation:
1010
- changed-files:
11-
- any-glob-to-any-file: ['**/*.md', '**/*.mdx']
11+
- any-glob-to-any-file: ['**/*.md', '**/*.mdx', '!.changeset/*.md']
1212

1313
github-actions:
1414
- changed-files:

.github/workflows/binary-build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ jobs:
6161
echo "checksum=$CHECKSUM" >> $GITHUB_OUTPUT
6262
echo "::notice::Binary checksum: $CHECKSUM"
6363
64-
- name: Create GitHub Release
64+
- name: Upload Binary to GitHub Release
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6767
run: |
6868
VERSION="${{ steps.get_version.outputs.version }}"
69-
gh release create v$VERSION \
70-
--title "v$VERSION" \
71-
--generate-notes \
72-
packages/cli/build/git-intent-$VERSION-darwin-amd64.tar.gz
69+
# add binary to existing release
70+
gh release upload v$VERSION packages/cli/build/git-intent-$VERSION-darwin-amd64.tar.gz
7371
7472
- name: Trigger Homebrew Update
7573
uses: peter-evans/repository-dispatch@v3

0 commit comments

Comments
 (0)