-
Notifications
You must be signed in to change notification settings - Fork 4
Add changelog preview workflow for pull requests #81
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,77 @@ | ||||||||||
| name: 📝 Changelog Preview | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| pull_request: | ||||||||||
| types: [opened, synchronize, reopened] | ||||||||||
|
|
||||||||||
| env: | ||||||||||
| HUSKY: 0 | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| preview: | ||||||||||
| runs-on: ubuntu-latest | ||||||||||
| permissions: | ||||||||||
| contents: write | ||||||||||
| pull-requests: write | ||||||||||
| steps: | ||||||||||
| # Checkout repository with full history for semantic-release | ||||||||||
| # This checks out the PR merge commit to analyze what would be released | ||||||||||
| - name: 📥 Checkout code | ||||||||||
| uses: actions/checkout@v5 | ||||||||||
| with: | ||||||||||
| ref: ${{ github.head_ref }} | ||||||||||
| persist-credentials: false | ||||||||||
pawcoding marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
|
|
||||||||||
| # Run semantic-release in dry-run mode | ||||||||||
| # This analyzes commits from the base branch to the PR head | ||||||||||
pawcoding marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
| - name: 🔮 Generate changelog preview | ||||||||||
| id: changelog | ||||||||||
| uses: cycjimmy/semantic-release-action@v5 | ||||||||||
| with: | ||||||||||
| semantic_version: 25 | ||||||||||
| dry_run: true | ||||||||||
| ci: false | ||||||||||
| unset_gha_env: true | ||||||||||
| branches: | | ||||||||||
| [ | ||||||||||
| 'master', | ||||||||||
| '${{ github.head_ref }}' | ||||||||||
|
Comment on lines
+37
to
+38
|
||||||||||
| 'master', | |
| '${{ github.head_ref }}' | |
| "master", | |
| { "name": "*", "prerelease": true } |
Uh oh!
There was an error while loading. Please reload this page.