From 99e342c18d5b609878525d568f7ec5cce8c4153f Mon Sep 17 00:00:00 2001 From: Romain Date: Mon, 20 Mar 2023 22:39:23 +0000 Subject: [PATCH] fix: remove changelog process that doesn't work --- .github/workflows/publish-package.yml | 24 ------------------------ scripts/changelog | 16 ---------------- 2 files changed, 40 deletions(-) delete mode 100755 scripts/changelog diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 9067f75..09159c6 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -21,27 +21,3 @@ jobs: - run: npm publish --ignore-scripts env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - # Create a Github release - release: - name: Create release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 100 - - name: Get the version - id: version - run: echo ::set-output name=tag::${GITHUB_REF:10} - - name: Generate change log - run: scripts/changelog ${{ steps.version.outputs.tag }} > CHANGELOG.md - - name: Create Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: "Release ${{ steps.version.outputs.tag }}" - body_path: CHANGELOG.md - draft: false - prerelease: false diff --git a/scripts/changelog b/scripts/changelog deleted file mode 100755 index a65228a..0000000 --- a/scripts/changelog +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -e - -current_tag="$1" -if [ -z "${current_tag}" ]; then - echo "Displays changes since previous tag" - echo "Usage: changelog " - echo "Examples:" - echo " changelog HEAD" - echo " changelog 2.15.0" - exit 1 -fi - -previous_tag=$(git describe --tags --abbrev=0 "${current_tag}^") - -format="- %s ([%h](https://github.com/thumbsup/thumbsup/commit/%h))" -git log --pretty=format:"${format}" "${previous_tag}".."${current_tag}"