Repository navigation
docs(angular): upgrade to Angular v22, adding all 40 advanced categor… #116
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: Releases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Personal Access Token | |
| id: check_token | |
| run: | | |
| if [ -n "${{ secrets.PA_TOKEN }}" ]; then | |
| echo "has_token=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "has_token=false" >> $GITHUB_OUTPUT | |
| echo "PA_TOKEN secret not configured; skipping automated release creation." | |
| fi | |
| - name: Conventional Changelog Action | |
| if: steps.check_token.outputs.has_token == 'true' | |
| id: changelog | |
| uses: TriPSs/conventional-changelog-action@v5 | |
| with: | |
| github-token: ${{ secrets.PA_TOKEN }} | |
| version-file: './releases.json,./package.json' | |
| - name: Create Release | |
| if: steps.check_token.outputs.has_token == 'true' && steps.changelog.outputs.skipped == 'false' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| token: ${{ secrets.PA_TOKEN }} | |
| tag_name: ${{ steps.changelog.outputs.tag }} | |
| name: ${{ steps.changelog.outputs.tag }} | |
| body: ${{ steps.changelog.outputs.clean_changelog }} |