diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d3dbfa8..da06cbd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,7 @@ +name: Publish on: repository_dispatch: - types: [ release-complete ] + types: [release-complete] jobs: publish: @@ -17,9 +18,9 @@ jobs: dispatch: runs-on: ubuntu-latest - needs: [ publish ] + needs: [publish] steps: - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v3 - with: - event-type: publish-complete + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + event-type: publish-complete diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 555cd0f..2e5b659 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +name: Release on: [push, pull_request] jobs: @@ -8,19 +9,19 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - lfs: true + lfs: true - name: Fetch next version id: nextVersion uses: VisualPinball/next-version-action@v0 with: - tagPrefix: 'v' + tagPrefix: "v" - name: Bump - if: ${{ steps.nextVersion.outputs.isBump == 'true' }} + if: ${{ steps.nextVersion.outputs.isBump == 'true' }} run: | - npm version ${{ steps.nextVersion.outputs.nextVersion }} --no-git-tag-version + npm version ${{ steps.nextVersion.outputs.nextVersion }} --no-git-tag-version - name: Commit id: commit - if: ${{ steps.nextVersion.outputs.isBump == 'true' }} + if: ${{ steps.nextVersion.outputs.isBump == 'true' }} run: | git config user.name "github-actions" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -34,18 +35,17 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - tag_name: ${{ steps.nextVersion.outputs.nextTag }} - name: ${{ steps.nextVersion.outputs.nextTag }} - prerelease: ${{ steps.nextVersion.outputs.isPrerelease }} - target_commitish: ${{ steps.commit.outputs.commitish }} - token: ${{ secrets.GITHUB_TOKEN }} + tag_name: ${{ steps.nextVersion.outputs.nextTag }} + name: ${{ steps.nextVersion.outputs.nextTag }} + prerelease: ${{ steps.nextVersion.outputs.isPrerelease }} + target_commitish: ${{ steps.commit.outputs.commitish }} + token: ${{ secrets.GITHUB_TOKEN }} dispatch: runs-on: ubuntu-latest - needs: [ release ] + needs: [release] steps: - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v3 - with: - event-type: release-complete - + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + event-type: release-complete