Skip to content

fix : install script #3

fix : install script

fix : install script #3

# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: components
on:
push:
branches:
- master
jobs:
semantic-release:
name: semantic-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npx npm-install-peers
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Storybook
run: |
rm -rf docs/storybook
npm run storybook:build
- name: Push Storybook updates to Github
run: |
# Check if there's anything to commit
if [ -n "$(git status --porcelain)" ]; then
git pull
git add docs/storybook
git commit -m "docs: build Storybook [skip ci]"
git push origin master
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}