Skip to content

Commit

Permalink
Merge pull request #270 from celo-org/soloseng/update-changeset-release
Browse files Browse the repository at this point in the history
Soloseng/update-changeset-release
  • Loading branch information
soloseng authored Mar 4, 2024
2 parents a1398bf + 72325da commit 225368e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .changeset/young-houses-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
if: false
env:
GITHUB_TOKEN: ${{ env.PAT }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/social-connect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ jobs:
- name: Find ChangeSet in PR
uses: peter-evans/find-comment@v2
id: fc
# Skip if only md files changed
if: github.event_name == 'pull_request' && steps.changes.outputs.others == 'true'
# Skip if author is github-bot from celo-org or only md files changed
if: github.event_name == 'pull_request' && github.event.pull_request.user.type != 'Bot' && steps.changes.outputs.others == 'true'
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Changeset detected
comment-author: changeset-bot[bot]
- name: Fail if Changeset commit not found
# Skip if only md files changed
if: github.event_name == 'pull_request' && steps.changes.outputs.others == 'true'
# Skip if author is github-bot from celo-org or only md files changed
if: github.event_name == 'pull_request' && github.event.pull_request.user.type != 'Bot' && steps.changes.outputs.others == 'true'
run: |
if ${{ steps.fc.outputs.comment-id == 0 }}; then
echo "Error: No Changeset Found. You create an empty changeset with 'yarn cs add --empty'" && exit 1
Expand Down

0 comments on commit 225368e

Please sign in to comment.