Skip to content

Build and Publish Storybook to GitHub Pages #17

Build and Publish Storybook to GitHub Pages

Build and Publish Storybook to GitHub Pages #17

name: Build and Publish Storybook to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Hente kode
uses: actions/checkout@v4
- name: Setup .yarnrc.yml
run: |
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.navikt.npmAlwaysAuth true
yarn config set npmScopes.navikt.npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Sette opp Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- uses: bitovi/[email protected]
with:
install_command: HUSKY=0 yarn install --immutable
build_command: yarn build-storybook
path: .static_storybook
checkout: false