Skip to content

Publish package to NPM & storybook #20

Publish package to NPM & storybook

Publish package to NPM & storybook #20

Workflow file for this run

name: Publish package to NPM & storybook
on:
release:
types: [published]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: yarn && yarn build
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
deploy:
runs-on: ubuntu-latest
steps:
- uses: bitovi/[email protected]
with:
path: "./storybook-static"
install_command: yarn install
build_command: yarn build && yarn build-storybook