We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbec9ec commit 5c49f95Copy full SHA for 5c49f95
.github/workflows/release.yml
@@ -93,10 +93,13 @@ jobs:
93
- name: Peek
94
run: pnpm peek
95
if: ${{ github.repository == 'nextauthjs/next-auth' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
96
+ - name: Get base commit SHA from main
97
+ id: get_base_sha
98
+ run: echo "BASE_SHA=$(git merge-base origin/main HEAD)" >> $GITHUB_ENV
99
- name: Check for changes under /packages
100
id: check-packages
101
run: |
- if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^packages/'; then
102
+ if git diff --name-only ${{ env.BASE_SHA }}...HEAD | grep '^packages/'; then
103
echo "PACKAGES_CHANGES=true" >> $GITHUB_ENV
104
else
105
echo "PACKAGES_CHANGES=false" >> $GITHUB_ENV
0 commit comments