Skip to content

Commit

Permalink
Enhance GitHub Actions workflow by adding a Git setup step that confi…
Browse files Browse the repository at this point in the history
…gures user details, fetches all branches and tags, and creates a temporary branch. Updated the changeset command to check the status since the main branch, improving the workflow's reliability and debugging capabilities.
  • Loading branch information
nelitow committed Dec 24, 2024
1 parent a372a13 commit 88fe0d8
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,37 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
# need this to get full git-history/clone in order to build changelogs and check changesets
fetch-depth: 0

- name: Git Setup
run: |
# Configure git
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Fetch all branches and tags
git fetch --all --tags
# Create and switch to a temporary branch
git switch -c temp-branch
# Create local main branch tracking origin/main
git branch main origin/main
# Debug info
echo "Git branches:"
git branch -a
echo "Current ref:"
git rev-parse --abbrev-ref HEAD
echo "Main ref:"
git rev-parse main
- uses: FuelLabs/github-actions/setups/node@master
with:
pnpm-version: 9.5.0
- run: pnpm changeset:check

- name: Run Changeset Check
run: pnpm changeset status --since=main

audit:
name: Audit
Expand Down

0 comments on commit 88fe0d8

Please sign in to comment.