Skip to content

update registry auth #122

update registry auth

update registry auth #122

Workflow file for this run

name: Publish Package & Storybook
on:
push:
branches:
- main
jobs:
publish_docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2 # Use PNPM
with:
version: 8
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Install Dependencies
run: pnpm install
- name: Build Latest
run: pnpm build && pnpm build-storybook
env:
NODE_OPTIONS: --max-old-space-size=8096
- name: Publish NPM Package
run: npm publish --non-interactive --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Update GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static