From 90adfa951a263047cd9be8f1187653aa04a24f6f Mon Sep 17 00:00:00 2001 From: kamiazya Date: Wed, 26 Jun 2024 23:12:43 +0900 Subject: [PATCH] Update workflow.yaml for versioning --- .github/workflows/workflow.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 02e41cf..663ba33 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -66,3 +66,23 @@ jobs: uses: ./ - name: Graphviz test run: dot -V + + versioning: + name: Versioning + runs-on: ubuntu-latest + needs: + - integration-test + permissions: + contents: write # Used to commit to "Version Packages" PR + pull-requests: write # Used to create "Version Packages" PR + if: ${{ github.event_name == 'push' && github.repository == 'ts-graphviz/setup-graphviz' && github.base_ref == 'refs/heads/main' }} + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Setup + uses: ./.github/actions/setup + - name: Create Release Pull Request + id: changesets + uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}