5.0.0-8 #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate new release | |
on: | |
push: | |
tags: | |
- 'v5*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- name: git config | |
run: | | |
git config user.name "${GITHUB_ACTOR}" | |
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
- run: yarn | |
- run: yarn build | |
- name: Publish package to NPM | |
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 |