chore: release 2.45.0 (#3726) #191
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: Publish stories if changed | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- stories/** | |
- components/** | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: "☁️ checkout repository" | |
uses: actions/checkout@v2 | |
- name: "🔧 setup node" | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: "🔧 install npm@latest" | |
run: npm i -g npm@latest | |
- name: "📦 install dependencies" | |
uses: bahmutov/npm-install@v1 | |
- name: "📦 build Storybook" | |
run: npm run build-storybook | |
- name: "🚀 deploy static" | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: storybook-static | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./storybook-static | |
commit_message: ${{ github.event.head_commit.message }} | |
enable_jekyll: false |