From a573ef9d7d05dbe134f8ecd586144b75ffdd7d35 Mon Sep 17 00:00:00 2001 From: Mararok Date: Fri, 8 Mar 2024 22:52:14 +0100 Subject: [PATCH] fix: ci --- .github/workflows/prepare-release.yaml | 8 ++++---- .github/workflows/publish.yml | 13 ++----------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/prepare-release.yaml b/.github/workflows/prepare-release.yaml index 67b85f7..6b9e7d6 100644 --- a/.github/workflows/prepare-release.yaml +++ b/.github/workflows/prepare-release.yaml @@ -1,4 +1,4 @@ -name: Release +name: Prepare Release on: workflow_dispatch: @@ -53,18 +53,18 @@ jobs: newVersion: '${{ env.NEW_VERSION }}' # Commit - - name: Commit CHANGELOG.md and package.json changes and create tag + - name: Commit CHANGELOG.md and package.json changes shell: bash run: | git add "package.json" git add "CHANGELOG.md" git commit -m "chore: release ${{ env.NEW_VERSION }}" - git push --follow-tags git push --set-upstream origin chore-prepare-release + git push git push --set-upstream origin chore-prepare-release - name: Create Pull Request run: | curl \ -X POST \ - -H "Authorization: token ${{ secrets..HEXANCORE_BOT_TOKEN }}" \ + -H "Authorization: token ${{ secrets.HEXANCORE_BOT_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/pulls \ -d '{"title":"Prepare new version release: ${{ env.NEW_VERSION }}","head":"chore-prepare-release","base":"main","body":"Prepare new version release: ${{ env.NEW_VERSION }}"}' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e6b9f3..8e47c72 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,19 +1,10 @@ -name: Release +name: Publish on: workflow_dispatch: - inputs: - releaseType: - description: 'Release type (one of): patch, minor, major' - required: true - type: choice - options: - - patch - - minor - - major jobs: - release: + publish: permissions: contents: write id-token: write