Skip to content

Commit

Permalink
Implement CI workflow for release creation
Browse files Browse the repository at this point in the history
Implement CI workflow for release creation
  • Loading branch information
almasen committed May 12, 2021
1 parent fd52545 commit 0e2b5c9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e2b5c9

Please sign in to comment.