diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index a5ec17d..47d77be 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -105,7 +105,20 @@ jobs: uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }} - dry-run: true - name: Print version number - run: echo ${{ steps.publishnpm.outputs.old-version }} + run: echo ${{ steps.publishnpm.outputs.version }} + + - if: steps.publishnpm.outputs.type != 'none' + name: Generate GitHub release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GH_RELEASE_TOKEN }}" + automatic_release_tag: "v${{ steps.publishnpm.outputs.version }}" + prerelease: false + files: | + CHANGELOG.md + LICENSE + README.md + lib/**/* + package.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fdd591..a292b9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Added +* CI workflow for automatic GitHub release generation * Updated some `dev-dependencies` to their newer versions as per [#5](https://github.com/almasen/n-digit-token/pull/5) ## 2.0.3 - 2021-04-14 diff --git a/README.md b/README.md index 8f68ac9..3988f93 100644 --- a/README.md +++ b/README.md @@ -411,11 +411,7 @@ Install the `devDependencies` and run `npm test` for the module tests. ## Support -*Buy me a coffee if you like this project* - -[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/almasi) - -If you like this project, please consider supporting `n-digit-token` with a [one-time](https://ko-fi.com/almasi) or [GitHub Sponsors donation](https://github.com/sponsors/almasen) as this project takes considerable amount of time and effort to develop and maintain. +If you like this project, please consider supporting `n-digit-token` with a [one-time](https://github.com/sponsors/almasen?frequency=one-time) or [recurring donation](https://github.com/sponsors/almasen?frequency=recurring) as this project takes considerable amount of time and effort to develop and maintain. ## License