Skip to content

Commit

Permalink
chore(ci): add changelog on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Dec 11, 2023
1 parent d918322 commit 44082b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ jobs:
run: yarn publish --tag unstable
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn add extract-changelog-release
- name: Generate Release Body
run: yarn extract-changelog-release > RELEASE_BODY.md
- uses: ncipollo/release-action@v1
with:
bodyFile: 'RELEASE_BODY.md'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish on gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn storybook:build
yarn storybook:deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: italia/[email protected]
# with:
# slack_token: ${{ secrets.SLACK_TOKEN }}
# channel_id: ${{ secrets.SLACK_CHANNEL }}
# project_name: React Angular Kit
Empty file added CHANGELOG.md
Empty file.

0 comments on commit 44082b2

Please sign in to comment.