diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 36cde25..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Publish - -on: - release: - types: - - published - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Update Major Version - run: | - MAJOR_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3 | cut -d "." -f1) - echo "New version: ${MAJOR_VERSION}" - git tag ${MAJOR_VERSION} - git push --tags -f diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0841771..de37b40 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,18 +4,15 @@ on: push: branches: - main + - merge-queue jobs: release: name: Release runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Create Release - run: npx semantic-release@v19.0.5 --debug --no-ci + - name: Log Event env: - GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + GITHUB_CONTEXT: ${{ toJSON(github) }} + run: | + echo "$GITHUB_CONTEXT"