diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a40aea3..c60974d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,3 +23,35 @@ jobs: - uses: JS-DevTools/npm-publish@v2 with: token: ${{ secrets.NPM_TOKEN }} + + - name: Create Tag + if: ${{ steps.publish.outputs.type }} + id: create_tag + uses: jaywcjlove/create-tag-action@main + with: + package-path: ./package.json + - name: Generate Changelog + id: changelog + uses: jaywcjlove/changelog-generator@main + if: steps.create_tag.outputs.successful + with: + head-ref: ${{steps.create_tag.outputs.version}} + filter-author: (Uninen|Renovate Bot) + show-emoji: false + + - name: Get the changelog + run: echo "${{ steps.changelog.outputs.changelog }}" + + - name: Create Release + uses: ncipollo/release-action@v1 + if: steps.create_tag.outputs.successful + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: ${{ steps.create_tag.outputs.version }} + tag: ${{ steps.create_tag.outputs.version }} + body: | + ${{ steps.changelog.outputs.changelog }} + + Compare changes: ${{ steps.changelog.outputs.compareurl }} + + Read more from the Changelog: https://github.com/slipmatio/logger/blob/main/CHANGES.md diff --git a/CHANGES.md b/CHANGES.md index be39854..eeb644f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ # Changelog -### 0.1.1 - N/A +### 0.1.2 - 2023-07-17 + +- CI: added automatic tagging and releases to GH actions. + +### 0.1.1 - 2023-07-17 - Fix: type exports work properly now. - Chore: bumped all deps. diff --git a/package.json b/package.json index 14402c8..234d810 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@slipmatio/logger", - "version": "0.1.1", + "version": "0.1.2", "description": "Better console logging with TypScript support", "main": "dist/index.js", "module": "dist/index.mjs",