Skip to content

Commit

Permalink
feat: automatically generate release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dweller23 committed Jun 7, 2022
1 parent 782ab46 commit 5c2318c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "bin/index.js"
bodyFile: "README.md"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
tag: ${{ steps.package-version.outputs.current-version}}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/promote-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
with:
repo: ${{ github.repository }}
version: ${{ github.event.release.id }}
file: index.js # ${{ toJson(github.event.release.assets[0].name) }}
file: ${{ toJson(github.event.release.assets[0].name) }}
token: ${{ secrets.GITHUB_TOKEN }}
regex: true

- name: deploy
run: npm run deploy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deploy-with-release-draft-poc",
"version": "0.0.12",
"version": "0.0.13",
"private": true,
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit 5c2318c

Please sign in to comment.