chore: workflow debug #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| # Prevent releases from forks | |
| if: github.repository == 'Chrilleweb/dotenv-diff' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f | |
| with: | |
| node-version: 24 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Debug changesets | |
| run: | | |
| echo "=== .changeset files ===" | |
| ls -la .changeset/ | |
| echo "" | |
| echo "=== Contents of changeset files ===" | |
| for f in .changeset/*.md; do | |
| echo "--- $f ---" | |
| cat "$f" | |
| done | |
| echo "" | |
| echo "=== git status ===" | |
| git status | |
| echo "" | |
| echo "=== git log (last 5) ===" | |
| git log --oneline -5 | |
| - name: Debug changelog marker | |
| run: | | |
| echo "=== CHANGELOG marker check ===" | |
| grep -n "neat-bars-sleep\|tangy-ideas-mate" CHANGELOG.md || echo "Marker NOT found in CHANGELOG" | |
| echo "" | |
| echo "=== Run pnpm version manually ===" | |
| pnpm version | |
| echo "" | |
| echo "=== git status after version ===" | |
| git status --porcelain | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf | |
| with: | |
| version: pnpm version | |
| publish: pnpm release | |
| commit: 'chore: release packages' | |
| title: 'chore: release packages' | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |