Skip to content

Commit

Permalink
chore: fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjake committed Aug 16, 2024
1 parent aa5421f commit ddcc00b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,23 @@ permissions:
contents: write
pull-requests: write

name: release-please
name: Release

jobs:
release-please:
test:
uses: ./.github/workflows/test.yml
release:
needs: test
runs-on: ubuntu-latest
steps:
- name: Test
uses: ./.github/workflows/test.yml

- name: Release
uses: googleapis/release-please-action@v4
id: release
with:
release-type: node

- if: ${{ steps.release.outputs.release_created }}
name: Publish
uses: ./.github/workflows/publish.yml

name: Checkout
uses: actions/checkout@v4
- if: ${{ steps.release.outputs.release_created }}
name: tag major and minor versions
run: |
Expand All @@ -40,3 +38,9 @@ jobs:
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
outputs:
release_created: ${{ steps.release.outputs.release_created }}
publish:
needs: release
if: ${{ needs.release.outputs.release_created }}
uses: ./.github/workflows/publish.yml
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# git-goose

## 0.2.0

### Minor Changes

- [`97ecf8ef`](https://github.com/hollandjake/git-goose/commit/97ecf8ef26e9c2e2991fd761689f6a084d246ffe) Thanks [@hollandjake](https://github.com/hollandjake)! - Modularize Git System for ease of maintainability

## 0.1.0

### Minor Changes
Expand Down

0 comments on commit ddcc00b

Please sign in to comment.