Skip to content

fix(styles): rating indicator half star display modes [ci visual] (#4… #386

fix(styles): rating indicator half star display modes [ci visual] (#4…

fix(styles): rating indicator half star display modes [ci visual] (#4… #386

name: Create release
on:
workflow_dispatch:
push:
branches:
- main
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
jobs:
run-release:
name: Run release
runs-on: ubuntu-latest
steps:
- name: Fetch from origin repo
uses: actions/checkout@v3
with:
ref: main # always fetch from main branch
fetch-depth: 0
token: ${{ secrets.GHACTIONS }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Bump Version
id: bumpVersion
uses: ./.github/actions/bump-version
with:
isPrerelease: ${{ github.event_name == 'push' }}
writeFile: true
- name: Lint
run: npm run lint
- name: Build
uses: ./.github/actions/build
- name: Update Changelog
run: npx conventional-changelog-cli -p angular -i CHANGELOG.md -s
- name: Publish packages to NPM
uses: ./.github/actions/npm-publish
with:
packagePaths: 'dist/packages/styles,dist/packages/common-css,dist/packages/theming-preview,dist/packages/cx'
isPrerelease: ${{ steps.bumpVersion.outputs.isPrerelease }}
token: ${{ secrets.NPM_TOKEN }}
- uses: ./.github/actions/set-up-git
name: Set up git user
with:
name: ${{ secrets.GH_NAME }}
email: ${{ secrets.GH_EMAIL }}
- name: Commit Changes
run: |
git add .
git commit -m "chore(release): release v${{ steps.bumpVersion.outputs.newVersion }} [ci skip]" --no-verify
git tag -a v${{ steps.bumpVersion.outputs.newVersion }} -m "chore(release): release v${{ steps.bumpVersion.outputs.newVersion }} [ci skip]"
git push --follow-tags
- name: Generate Release Body
id: generate_body
uses: ./.github/actions/generate-conventional-release-notes
- name: Create Release
uses: ncipollo/[email protected]
with:
prerelease: ${{ steps.bumpVersion.outputs.isPrerelease }}
tag: v${{ steps.bumpVersion.outputs.newVersion }}
body: ${{ steps.generate_body.outputs.generatedReleaseNotes }}
gh_pages:
name: Github Pages deploy
runs-on: ubuntu-latest
needs: run-release
if: ${{ github.event_name != 'push' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main # always fetch from main branch
token: ${{ secrets.GHACTIONS }}
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run storybook:static build
run: npx cross-env STORYBOOK_BASE_HREF=fundamental-styles yarn run storybook:static
- name: Publish to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
token: ${{ secrets.GHACTIONS }}
repository-name: ${{ github.repository }}