This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Goodbye #11
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
name: "Lint and Build" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the git repository | |
uses: actions/checkout@main | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Linting | |
run: bun run lint | |
- name: Building | |
run: bun run build | |
version-bump-changelog-release: | |
name: Bump Version, Generate Changelog, and Create Release | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the git repository | |
uses: actions/checkout@main | |
- name: Conventional changelog action | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@v5 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
preset: "conventionalcommits" | |
version-file: "./package.json" | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag: ${{ steps.changelog.outputs.tag }} | |
name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} |