writing base file path first #228
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: Build and Publish storybook to GitHub Pages | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.build-publish.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- id: build-publish | |
uses: bitovi/[email protected] | |
with: | |
path: storybook-static | |
install_command: npm i | |
build_command: NODE_ENV=production npm run build:for:storybook && npm run build:storybook |