Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(changesets): versioning packages #1836

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-hats-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

chore
5 changes: 5 additions & 0 deletions .changeset/old-lobsters-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

test
15 changes: 11 additions & 4 deletions .github/workflows/release-npm-changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
check-commit:
name: Decide if releases or create PR
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
Expand All @@ -26,14 +26,21 @@ jobs:
with:
fetch-depth: 0
- id: check-commit
name: Check if commit is a regular merge or a changeset PR merge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ github.event.head_commit.message }}" == "Merge pull request"* ]]; then
PR_NUMBER=$(echo "${{ github.event.head_commit.message }}" | grep -o '#[0-9]\+' | tr -d '#')
COMMIT_MSG=$(git log -1 --pretty=%B)
FIRST_LINE=$(echo "$COMMIT_MSG" | head -n1)
echo "asd COMMIT_MSG: $COMMIT_MSG"
echo "asd FIRST_LINE: $FIRST_LINE"
if [[ "$FIRST_LINE" == "ci(changesets): versioning packages"* ]]; then
PR_NUMBER=$(echo "$FIRST_LINE" | grep -o '#[0-9]\+' | head -n1 | tr -d '#')
echo "asd PR_NUMBER: $PR_NUMBER"
if [ -n "$PR_NUMBER" ]; then
PR_TITLE=$(gh pr view "$PR_NUMBER" --json title -q .title)
if [[ "$PR_TITLE" == "ci(changesets): versioning packages" ]]; then
echo "asd PR_TITLE: $PR_TITLE"
if [[ "$PR_TITLE" == "ci(changesets): versioning packages"* ]]; then
echo "is_changeset_pr=true" >> "$GITHUB_OUTPUT"
exit 0
fi
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/tests-devnet.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/tests-testnet.yaml

This file was deleted.

Loading