Skip to content

Commit

Permalink
release.yml action - add comment input
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn authored Nov 12, 2020
1 parent fa238a2 commit ba16e94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'NPM Version (<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | ...)'
required: true
default: 'patch'
comment:
description: 'Added to end of commit message and annotated git tag'
required: true
default: ' ()'
# push:
# branches: [ master ]

Expand All @@ -31,8 +35,7 @@ jobs:
run: |
yarn install
yarn build
- run: echo "version -- ${{ github.event.inputs.npmVersion }}"
- run: npm version ${{ github.event.inputs.npmVersion }} -m "release %s :package:"
- run: npm version ${{ github.event.inputs.npmVersion }} -m "release %s :package:\u0020${{ github.event.inputs.comment }}"
- run: git push && git push --tags
- name: publish-npm
run: npm publish --access public
Expand Down

0 comments on commit ba16e94

Please sign in to comment.